epg_exporter

module
v0.0.0-...-39cdd30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: Apache-2.0

README

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 post 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL