No description
Find a file
2024-05-15 22:41:26 +02:00
src/postgres_connection_exporter feat: Initial implementation of a PostgreSQL connection exporter 2024-05-15 22:41:26 +02:00
.gitignore feat: Initial implementation of a PostgreSQL connection exporter 2024-05-15 22:41:26 +02:00
config.dist.yaml feat: Initial implementation of a PostgreSQL connection exporter 2024-05-15 22:41:26 +02:00
LICENSE feat: Initial implementation of a PostgreSQL connection exporter 2024-05-15 22:41:26 +02:00
pyproject.toml feat: Initial implementation of a PostgreSQL connection exporter 2024-05-15 22:41:26 +02:00
README.md feat: Initial implementation of a PostgreSQL connection exporter 2024-05-15 22:41:26 +02:00

PostgreSQL Connection Exporter for Prometheus

This is a simple server that exports PostgreSQL connection metrics in a format that can be scraped by Prometheus.

It outputs the following metrics:

  • The number of connections per database
  • The number of connections per user
  • The number of connections per client address
  • The number of connections per state

Installation

You can install the exporter from PyPI. Within a virtual environment, run:

pip install postgres-connection-exporter

Usage

The exporter is configured using a config.yaml. You can find an example in config.dist.yaml.

After you have created your config.yaml, you can start the exporter with:

postgres-connection-exporter

License

This project is licensed under the MIT License. See the LICENSE file for details.