aboutsummaryrefslogtreecommitdiff
path: root/prometheus_pgbouncer_exporter
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus_pgbouncer_exporter')
-rw-r--r--prometheus_pgbouncer_exporter/exposition.py14
1 files changed, 14 insertions, 0 deletions
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 = """
<a href="/metrics">View metrics</a>
+ <h2>Example Configuration</h2>
+ <p>
+ You must configure Prometheus to scrape the metrics exported here. The port
+ is 9127, and the configuration should look something like the example
+ below.
+ </p>
+ <pre><code>
+ scrape_configs:
+ - job_name: pgbouncer
+ target_groups:
+ - targets:
+ - MACHINE_ADDRESS:9127
+ </code></pre>
+
<h2>Information</h2>
<p>
Copyright (C) 2015 Christopher Baines <mail@cbaines.net><br>