spreaker / prometheus-pgbouncer-exporter

Prometheus exporter for PgBouncer
MIT License
104 stars 38 forks source link

Bump pyyaml dependency from 5.3.1 to 5.4.1 #40

Closed ndavidson-pulse closed 2 years ago

ndavidson-pulse commented 2 years ago

This change also makes the absolute dependency on pyyaml a minimum version constaint for better compatibility with other pip-packages.

fixes spreaker/prometheus-pgbouncer-exporter#39

ndavidson-pulse commented 2 years ago

Ran unit tests:

$ docker-compose run dev
Creating network "prometheus-pgbouncer-exporter_default" with the default driver
/prometheus-pgbouncer-exporter # python -m unittest
................................
----------------------------------------------------------------------
Ran 32 tests in 8.162s

OK

pgbouncer:

# python -m prometheus_pgbouncer_exporter.cli --config ./config.yml
{"asctime": "2021-10-05 09:30:46", "levelname": "INFO", "message": "Exporter is starting up"}
{"asctime": "2021-10-05 09:30:46", "levelname": "INFO", "message": "Config file successfully read from ./config.yml"}
{"asctime": "2021-10-05 09:30:46", "levelname": "ERROR", "message": "Unable fetch metrics from postgresql://pgbouncer:***@localhost:6431/pgbouncer", "exception": "could not connect to server: Connection refused\n\tIs the server running on host \"localhost\" (127.0.0.1) and accepting\n\tTCP/IP connections on port 6431?\ncould not connect to server: Address not available\n\tIs the server running on host \"localhost\" (::1) and accepting\n\tTCP/IP connections on port 6431?\n"}
{"asctime": "2021-10-05 09:30:46", "levelname": "ERROR", "message": "Unable fetch metrics from postgresql://pgbouncer:***@localhost:6432/pgbouncer", "exception": "could not connect to server: Connection refused\n\tIs the server running on host \"localhost\" (127.0.0.1) and accepting\n\tTCP/IP connections on port 6432?\ncould not connect to server: Address not available\n\tIs the server running on host \"localhost\" (::1) and accepting\n\tTCP/IP connections on port 6432?\n"}
{"asctime": "2021-10-05 09:30:46", "levelname": "INFO", "message": "Exporter listening on 0.0.0.0:9100"}
^C{"asctime": "2021-10-05 09:30:53", "levelname": "INFO", "message": "Exporter is shutting down"}
{"asctime": "2021-10-05 09:30:54", "levelname": "INFO", "message": "Exporter has shutdown"}

and pyformat:

/prometheus-pgbouncer-exporter # pycodestyle --max-line-length=300 prometheus_pgbouncer_exporter/*.py
/prometheus-pgbouncer-exporter #