Skip to main content
To allow monitoring tools to collect metrics from your etcd database, you need to explicitly expose the etcd metrics endpoint. Choose the tab that matches how you manage your cluster.
  1. Create a patch file named etcd-metrics-patch.yaml that exposes the etcd metrics endpoint on port 2381, accessible from all network interfaces:
  2. Create a CP_IPS variable that contains the IP addresses of your control plane nodes:
  3. Ensure you are in your project’s directory and apply the etcd-metrics-patch.yaml patch to your control plane nodes.
    Note: You can also export your TALOSCONFIG variable and then remove the --talosconfig=./talosconfig flag in the patch command above.
  4. After the node reboots, run the following command to confirm that the etcd metrics endpoint is accessible:
  5. Secure your control plane IP addresses to prevent public access. See the Ingress Firewall guide for instructions on securing your control plane.