From 5f70eee137344f98786f61168cb32cbe7e493ec0 Mon Sep 17 00:00:00 2001 From: Tim Collins <45351296+tico24@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:34:29 +0100 Subject: [PATCH] docs: Clarify headless service for promethus scraping (#13667) Signed-off-by: Tim Collins --- docs/metrics.md | 87 ++++++++++++++++++++++++------------------------- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/docs/metrics.md b/docs/metrics.md index c0f0feaa9be0..d9bae309d34e 100644 --- a/docs/metrics.md +++ b/docs/metrics.md @@ -60,6 +60,42 @@ metricsConfig: | ### Prometheus scraping +A metrics service is not installed as part of [the default installation](quick-start.md) so you will need to add one if you wish to use a Prometheus Service Monitor. +If you have more than one controller pod, using one as a [hot-standby](high-availability.md), you should use [a headless service](https://kubernetes.io/docs/concepts/services-networking/service/#headless-services) to ensure that each pod is being scraped so that no metrics are missed. + +```yaml +cat <