How to get etcd metrics? #7214
-
It's not a pod, and I can't scape metrics from the cluster. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
You'd set the and add a |
Beta Was this translation helpful? Give feedback.
-
So what is the recommended way of configuring etcd metrics scraping again? I was not able to get the above recommendation to work. I am running:
After applying the following cluster patch: cluster:
etcd:
extraArgs:
listen-metrics-url: 0.0.0.0
# netstat -ltnp | grep etcd
tcp6 0 0 :::2380 :::* LISTEN 2061/etcd
tcp6 0 0 :::2379 :::* LISTEN 2061/etcd FWIW: # curl -6 "http://[::1]:2380/metrics" -v
* Trying [::1]:2380...
* Connected to ::1 (::1) port 2380 (#0)
> GET /metrics HTTP/1.1
> Host: [::1]:2380
> User-Agent: curl/7.88.1
> Accept: */*
>
* Empty reply from server
* Closing connection 0
curl: (52) Empty reply from server # curl -6 "http://[::1]:2379/metrics" -v
* Trying [::1]:2379...
* Connected to ::1 (::1) port 2379 (#0)
> GET /metrics HTTP/1.1
> Host: [::1]:2379
> User-Agent: curl/7.88.1
> Accept: */*
>
* Empty reply from server
* Closing connection 0
curl: (52) Empty reply from server |
Beta Was this translation helpful? Give feedback.
-
You can retrieve etcd metrics directly from the etcd server using its HTTP API. The metrics endpoint typically resides at |
Beta Was this translation helpful? Give feedback.
yes, you can also set it to the node ip