Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
fix version, fix install from local
Browse files Browse the repository at this point in the history
  • Loading branch information
murbano83 committed Jul 11, 2019
1 parent 70cbecc commit b959679
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM python:3.6.7-alpine

ADD . /

RUN apk update
RUN apk add postgresql-libs
RUN apk add --virtual .build-deps gcc musl-dev postgresql-dev
RUN python3 -m pip install prometheus-pgbouncer-exporter==2.0.2 --verbose
RUN python3 -m pip install -e . -vvv
RUN apk --purge del .build-deps

EXPOSE 9127
Expand Down
2 changes: 0 additions & 2 deletions prometheus_pgbouncer_exporter/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def collect(self):
{"type": "gauge", "column": "sv_login", "metric": "server_login_connections", "help": "Server connections currently in logging in process"},
{"type": "gauge", "column": "maxwait", "metric": "client_maxwait_seconds", "help": "How long the first (oldest) client in queue has waited, in seconds"},
{"type": "gauge", "column": "maxwait_us", "metric": "client_maxwait_us_microseconds", "help": "Microsecond part of the maximum waiting time."},
{"type": "text", "column": "pool_mode", "metric": "client_pool_mode", "help": "The pooling mode in use."},
], {"database": "database", "user": "user"}, self.config.getExtraLabels())
else:
success = False
Expand All @@ -111,7 +110,6 @@ def collect(self):
{"type": "counter", "column": "max_connections", "metric": "database_max_connections", "help": "Maximum number of allowed connections for this database, as set by max_db_connections, either globally or per database."},
{"type": "gauge", "column": "paused", "metric": "database_paused", "help": "1 if this database is currently paused, else 0."},
{"type": "gauge", "column": "disabled", "metric": "database_disabled", "help": "1 if this database is currently disabled, else 0."},
{"type": "text", "column": "pool_mode", "metric": "database_pool_mode", "help": "The database’s override pool_mode, or NULL if the default will be used instead."},
], {"name": "database", "database": "backend_database"}, self.config.getExtraLabels())
else:
success = False
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
setup(
name = 'prometheus-pgbouncer-exporter',
packages = ['prometheus_pgbouncer_exporter'],
version = '2.0.1',
version = '2.0.3',
description = 'Prometheus exporter for PgBouncer',
long_description = long_description,
author = 'Marco Pracucci',
author_email = '[email protected]',
url = 'https://github.com/PaackEng/prometheus-pgbouncer-exporter',
download_url = 'https://github.com/PaackEng/prometheus-pgbouncer-exporter/archive/2.0.2.tar.gz',
url = 'https://github.com/spreaker/prometheus-pgbouncer-exporter',
download_url = 'https://github.com/spreaker/prometheus-pgbouncer-exporter/archive/2.0.3.tar.gz',
keywords = ['prometheus', 'pgbouncer'],
classifiers = [],
python_requires = ' >= 3',
Expand Down

0 comments on commit b959679

Please sign in to comment.