aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-02-27 13:26:26 +0000
committerChristopher Baines <mail@cbaines.net>2016-02-27 13:58:31 +0000
commite1dab5b45ec2e17c5c78d97adec05c251030aceb (patch)
tree88defea7e34aaa083fb6f37d70c4cb20f63eb4e5
parent9c905eaa1375d2e7c13c4a3e43ea3feca4688950 (diff)
downloadprometheus-pgbouncer-exporter-e1dab5b45ec2e17c5c78d97adec05c251030aceb.tar
prometheus-pgbouncer-exporter-e1dab5b45ec2e17c5c78d97adec05c251030aceb.tar.gz
Alter --port and --user to --pgbouncer-*
-rw-r--r--prometheus_pgbouncer_exporter/cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/prometheus_pgbouncer_exporter/cli.py b/prometheus_pgbouncer_exporter/cli.py
index 5a78fc6..30460f8 100644
--- a/prometheus_pgbouncer_exporter/cli.py
+++ b/prometheus_pgbouncer_exporter/cli.py
@@ -51,13 +51,13 @@ def main():
)
p.add(
- '--port',
+ '--pgbouncer-port',
default='6432',
help="Port to connect to pgbouncer",
env_var='PGBOUNCER_PORT',
)
p.add(
- '--user',
+ '--pgbouncer-user',
default='pgbouncer',
help="User to connect to pgbouncer with",
env_var='PGBOUNCER_USER',
@@ -87,7 +87,7 @@ def main():
logging.info(p.format_values())
- connection = get_connection(options.user, options.port)
+ connection = get_connection(options.pgbouncer_user, options.pgbouncer_port)
REGISTRY.register(StatsCollector(
connection=connection,