Scrapes standard Patroni stats and executes custom Postgresql queries deemed essential to monitoring by Aware SRE for active Patroni clusters. Exports metrics via HTTP for Prometheus consumption on port 9933.
To run it:
epg_exporter [flags]
Help on flags:
epg_exporter --help
Important: Host addresses for both Patroni and Postgres must be supplied for a successful response.
- Specify Patroni API URL using the
--patroni.host
flag. - Specify Patroni API port using the
--patroni.port
flag. - Specify Postgres host using the
--postgres.host
flag. - Specify Postgres user using the
--postgres.user
flag. - Specify Postgres password using the
--postgres.password
flag. - Specify Postgres port using the
--postgres.port
flag. - Specify Postgres database using the
--postgres.database
flag.
epg_exporter --patroni.host="http://localhost" \
--postgres.host="localhost" --postgres.database="example" \
--postgres.user="superuser" --postgres.password="supersecret"
make build
make test
Apache License 2.0, see LICENSE.