From cc6acaf60c2b88af7b87263d7544777953f58cb2 Mon Sep 17 00:00:00 2001 From: Vincent Composieux Date: Fri, 10 May 2019 14:44:04 +0200 Subject: [PATCH] Added missing prometheus.yml configuration on README file --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 92167c5..8ecd4e5 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,15 @@ $ ./pihole_exporter -pihole_hostname 192.168.1.10 -pihole_password azerty ... ``` +Once the exporter is running, you also have to update your `prometheus.yml` configuration to let it scrape the exporter: + +```yaml +scrape_configs: + - job_name: 'pihole' + static_configs: + - targets: ['localhost:9311'] +``` + ## Available CLI options ```bash # Interval of time the exporter will fetch data from PI-Hole