From e1dab5b45ec2e17c5c78d97adec05c251030aceb Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 27 Feb 2016 13:26:26 +0000 Subject: Alter --port and --user to --pgbouncer-* --- prometheus_pgbouncer_exporter/cli.py | 6 +++--- 1 file 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, -- cgit v1.2.3