From 94f4430ff31a68da85b315ce03e77bdb9d038f06 Mon Sep 17 00:00:00 2001 From: Thach MAI Date: Fri, 2 Oct 2015 23:00:10 +0200 Subject: [PATCH] Fix example prometheus.yml to use "external_labels" instead of "labels". --- documentation/examples/prometheus.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/documentation/examples/prometheus.yml b/documentation/examples/prometheus.yml index 50857a991..0f90cb0e4 100644 --- a/documentation/examples/prometheus.yml +++ b/documentation/examples/prometheus.yml @@ -4,8 +4,9 @@ global: evaluation_interval: 15s # By default, scrape targets every 15 seconds. # scrape_timeout is set to the global default (10s). - # Attach these extra labels to all timeseries collected by this Prometheus instance. - labels: + # Attach these labels to any time series or alerts when communicating with + # external systems (federation, remote storage, Alertmanager). + external_labels: monitor: 'codelab-monitor' # Load and evaluate rules in this file every 'evaluation_interval' seconds. @@ -27,4 +28,4 @@ scrape_configs: # scheme defaults to 'http'. target_groups: - - targets: ['localhost:9090'] \ No newline at end of file + - targets: ['localhost:9090']