From 06438d0dc2483398edc8b33c5e15215d9064549c Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 26 Sep 2020 17:33:23 +0900 Subject: [PATCH] Collect the metrics from `grafana`. --- cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml b/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml index e1d1873..df63eec 100644 --- a/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml +++ b/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml @@ -51,6 +51,12 @@ scrape_configs: services: - 'node_exporter' + - job_name: 'grafana' + consul_sd_configs: + - server: 'localhost:8500' + services: + - 'grafana' + alerting: alertmanagers: - static_configs: