To allow monitoring tools to collect metrics from your etcd database, you need to explicitly expose the etcd metrics endpoint. Here’s how to do it:Documentation Index
Fetch the complete documentation index at: https://docs.siderolabs.com/llms.txt
Use this file to discover all available pages before exploring further.
-
Create a patch file named
etcd-metrics-patch.yamlthat exposes the etcd metrics endpoint onport:2381, accessible from all network interfaces -
Create a
CP_IPSvariable that contains the IP addresses of your control plane nodes: -
Ensure you are in your project’s directory and apply the
etcd-metrics-patch.yamlpatch to your control plane nodes.Note: You can also export yourTALOSCONFIGvariable and then remove the--talosconfig=./talosconfigflag in the patch command above. -
Reboot the nodes.
Note that if you have only one control plane node, rebooting it will cause cluster downtime.
-
After the node reboots, run the following command to confirm that the etcd metrics endpoint is accessible:
- Secure your control plane IP addresses to prevent public access. See the Ingress Firewall guide for instructions on securing your control plane.