From 789c849259e9bad6cc29ca8c3097f0e4420dae58 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Fri, 29 Apr 2022 14:44:16 +0200 Subject: [PATCH] Add 'host' label to all prometheus data to allow the same dashboards to be used centrally and locally --- docker-compose/prometheus/prometheus.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docker-compose/prometheus/prometheus.yml b/docker-compose/prometheus/prometheus.yml index 327467727..7de43ddc8 100644 --- a/docker-compose/prometheus/prometheus.yml +++ b/docker-compose/prometheus/prometheus.yml @@ -6,11 +6,13 @@ global: scrape_configs: - job_name: tango static_configs: - - targets: - - "tango-prometheus-exporter:8000" + - targets: ["tango-prometheus-exporter:8000"] + labels: + "host": "localhost" - job_name: host scrape_interval: 60s static_configs: - - targets: - - "host.docker.internal:9100" + - targets: ["host.docker.internal:9100"] + labels: + "host": "localhost" -- GitLab