diff options
Diffstat (limited to 'prometheus_pgbouncer_exporter/utils.py')
-rw-r--r-- | prometheus_pgbouncer_exporter/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prometheus_pgbouncer_exporter/utils.py b/prometheus_pgbouncer_exporter/utils.py index 12e9ddd..7f9aae0 100644 --- a/prometheus_pgbouncer_exporter/utils.py +++ b/prometheus_pgbouncer_exporter/utils.py @@ -14,11 +14,12 @@ import psycopg2 -def get_connection(user, port): +def get_connection(user, port, host): connection = psycopg2.connect( database='pgbouncer', user=user, port=port, + host=host, ) # pgbouncer does not support transactions (as it does not make sense to), |