diff options
author | Christopher Baines <mail@cbaines.net> | 2016-01-16 20:37:59 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2016-01-16 20:54:48 +0000 |
commit | 103d4cf81620831b1943851ac66d206366ab31cb (patch) | |
tree | bfa480b20666b4d786ea9d0960039f1c661437d8 | |
parent | 7a362464b1d0abb08d912acf594e8c49c263460a (diff) | |
download | prometheus-pgbouncer-exporter-103d4cf81620831b1943851ac66d206366ab31cb.tar prometheus-pgbouncer-exporter-103d4cf81620831b1943851ac66d206366ab31cb.tar.gz |
Add some information on configuring Prometheus
-rw-r--r-- | prometheus_pgbouncer_exporter/exposition.py | 14 |
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> |