From 103d4cf81620831b1943851ac66d206366ab31cb Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 16 Jan 2016 20:37:59 +0000 Subject: Add some information on configuring Prometheus --- prometheus_pgbouncer_exporter/exposition.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/prometheus_pgbouncer_exporter/exposition.py b/prometheus_pgbouncer_exporter/exposition.py index 6f9123a..12048fa 100644 --- a/prometheus_pgbouncer_exporter/exposition.py +++ b/prometheus_pgbouncer_exporter/exposition.py @@ -42,6 +42,20 @@ index_page = """ View metrics +

Example Configuration

+

+ You must configure Prometheus to scrape the metrics exported here. The port + is 9127, and the configuration should look something like the example + below. +

+

+    scrape_configs:
+      - job_name: pgbouncer
+        target_groups:
+          - targets:
+            - MACHINE_ADDRESS:9127
+  
+

Information

Copyright (C) 2015 Christopher Baines
-- cgit v1.2.3