This image overrides the default image postgres-exporter and adds support for setting postgres exporter arguments (that do not support it) via environment variables
All collector arguments can be set via env variables adding PG_EXPORTER_COLLECTOR_ prefix. For example
--collector.database ( PG_EXPORTER_COLLECTOR_DATABASE=true)
--no-collector.database ( PG_EXPORTER_COLLECTOR_DATABASE=false)
--collector.replication_slot (PG_EXPORTER_COLLECTOR_REPLICATION_SLOT=true)
--no-collector.replication_slot (PG_EXPORTER_COLLECTOR_REPLICATION_SLOT=false)
Plus you can set --web.listen-address using PG_EXPORTER_WEB_LISTEN_ADDRESS=9111
docker example
docker run --rm -e PG_EXPORTER_COLLECTOR_REPLICATION_SLOT=true -e PG_EXPORTER_WEB_LISTEN_ADDRESS=9111 gramal/postgres-exporter:latest
We use postgres-operator from zalando and currently it does not support adding arguments to configured sidecars. So in order to add different cmd line options to postgres-exporter we use this image that enables setting cmd line args through env vars
Content type
Image
Digest
sha256:2679af56e…
Size
9.6 MB
Last updated
over 2 years ago
docker pull gramal/postgres-exporter