From 86bb04783c8fd0321e76ccdfbf3ad3faf29d4e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B0=80=EC=9C=A4?= <60080153+KaYunKIM@users.noreply.github.com> Date: Thu, 20 Feb 2025 00:24:30 +0900 Subject: [PATCH] Example config: Add labels to static_configs (#13327) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 김가윤 <60080153+KaYunKIM@users.noreply.github.com> Co-authored-by: Bryan Boreham --- documentation/examples/prometheus.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/documentation/examples/prometheus.yml b/documentation/examples/prometheus.yml index 312b578aad..9a45049c62 100644 --- a/documentation/examples/prometheus.yml +++ b/documentation/examples/prometheus.yml @@ -27,3 +27,6 @@ scrape_configs: static_configs: - targets: ["localhost:9090"] + # The label name is added as a label `label_name=` to any timeseries scraped from this config. + labels: + app: "prometheus"