You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
730 B

  1. # etcd
  2. ## Metrics
  3. To expose metrics on a separate HTTP port, define it in the inventory with:
  4. ```yaml
  5. etcd_metrics_port: 2381
  6. ```
  7. To create a service `etcd-metrics` and associated endpoints in the `kube-system` namespace,
  8. define it's labels in the inventory with:
  9. ```yaml
  10. etcd_metrics_service_labels:
  11. k8s-app: etcd
  12. app.kubernetes.io/managed-by: Kubespray
  13. app: kube-prometheus-stack-kube-etcd
  14. release: prometheus-stack
  15. ```
  16. The last two labels in the above example allows to scrape the metrics from the
  17. [kube-prometheus-stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)
  18. chart with the following Helm `values.yaml` :
  19. ```yaml
  20. kubeEtcd:
  21. service:
  22. enabled: false
  23. ```