From 4ca7ebd1448979147511045e30d11ebce15f8ca3 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sat, 6 Mar 2021 00:40:44 +0100 Subject: [PATCH] Add a unique exported label (useful for federation) --- roles/prometheus/templates/prometheus/prometheus.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/prometheus/templates/prometheus/prometheus.yml.j2 b/roles/prometheus/templates/prometheus/prometheus.yml.j2 index 75c8be9..937f64f 100644 --- a/roles/prometheus/templates/prometheus/prometheus.yml.j2 +++ b/roles/prometheus/templates/prometheus/prometheus.yml.j2 @@ -8,7 +8,7 @@ global: # Attach these labels to any time series or alerts when communicating with # external systems (federation, remote storage, Alertmanager). external_labels: - monitor: 'example' + federated_instance: '{{ inventory_hostname }}' # Alertmanager configuration # Use prometheus alertmanager installed on the same machine