From faef01aa4429085cc6f7a189a12e92f09bd3fdf5 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Fri, 29 Apr 2022 15:07:39 +0200 Subject: [PATCH] Scrape prometheus and grafana as well --- docker-compose/prometheus/prometheus.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docker-compose/prometheus/prometheus.yml b/docker-compose/prometheus/prometheus.yml index 7de43ddc8..8e6e1b7b1 100644 --- a/docker-compose/prometheus/prometheus.yml +++ b/docker-compose/prometheus/prometheus.yml @@ -9,10 +9,21 @@ scrape_configs: - targets: ["tango-prometheus-exporter:8000"] labels: "host": "localhost" - - job_name: host scrape_interval: 60s static_configs: - targets: ["host.docker.internal:9100"] labels: "host": "localhost" + # scrape local services + - job_name: prometheus + static_configs: + - targets: ["localhost:9090"] + labels: + "host": "localhost" + - job_name: grafana + static_configs: + - targets: ["grafana:9090"] + labels: + "host": "localhost" +~ -- GitLab