patroni_exporter

Basic Prometheus exporter for Patroni.

Currently only supports Consul as a DCS but extending would be reasonably trivial. It currently serves my use case monitoring Patroni running on Hashicorp Nomad where Consul service registration is managed by Nomad. It's untested against Patroni-registered services but it would probably Just Work (tm).

Usage

patroni_exporter can be configured either by passing in arguments or by environment variables

```shell $ patroni_exporter -h patroni-exporter 0.2.0 Export Patroni metrics to Prometheus

USAGE: patroni_exporter [FLAGS] [OPTIONS] --consul --listen --service

FLAGS: -h, --help Prints help information -V, --version Prints version information -v Logging verbosity

OPTIONS: -t, --token Consul token [env: CONSULHTTPTOKEN=] -c, --consul Consul URL [env: CONSULHTTPADDR=] -l, --listen HTTP listen address -s, --service Patroni service name [env: PATRONI_SERVICE=] ```

License

MIT