Skip to main content

How can our Prometheus scrape etcd metrics?

Syself support For release

To scrape etcd metrics with Prometheus on Syself Autopilot, run a collector on the host network of the nodes and let it send the metrics to your Prometheus. etcd, kube-scheduler and kube-controller-manager serve their metrics on 127.0.0.1 only. The metrics are available on the node and are not exposed on the network.

A Prometheus pod has its own network namespace, so it cannot reach the node's loopback address. The documented collector is the System Alloy: a Grafana Alloy DaemonSet with hostNetwork: true that scrapes the loopback endpoints on each node and forwards the samples by remote write. Your Prometheus has to accept remote write. The same agent collects the kubelet and Cilium metrics and the logs of the node. You deploy it with Helm and the values file from Deploy the System Alloy. Once it runs, the etcd metrics arrive in your Prometheus.

The control plane runs on your own servers, so you see all of its metrics, for example etcd commit latency, database size and leader changes. The endpoints, and which metrics to watch, are in Control-plane metrics.

Still stuck?

Prepare your case, then email us.