Skip to content

shrinedogg/epg_exporter

 
 

Repository files navigation

Go Report CardLicense

EPG: "Everything PG" Exporter for Prometheus

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.

Getting Started

To run it:

epg_exporter [flags]

Help on flags:

epg_exporter --help

Usage

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" 

Building

make build

Testing

make test

License

Apache License 2.0, see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.8%
  • Makefile 3.0%
  • Starlark 1.2%