aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-01-16 20:37:59 +0000
committerChristopher Baines <mail@cbaines.net>2016-01-16 20:54:48 +0000
commit103d4cf81620831b1943851ac66d206366ab31cb (patch)
treebfa480b20666b4d786ea9d0960039f1c661437d8
parent7a362464b1d0abb08d912acf594e8c49c263460a (diff)
downloadprometheus-pgbouncer-exporter-103d4cf81620831b1943851ac66d206366ab31cb.tar
prometheus-pgbouncer-exporter-103d4cf81620831b1943851ac66d206366ab31cb.tar.gz
Add some information on configuring Prometheus
-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>