Image Overview: prometheus-postgres-exporter-bitnami

Overview: prometheus-postgres-exporter-bitnami Chainguard Image

Minimal Prometheus Postgres Exporter Image

Get It!

The image is available on

docker pull


This image listens on port 9187 by default.

To test:

ts=2023-05-01T19:06:49.164Z caller=proc.go:250 msg="Excluded databases" databases=[]
ts=2023-05-01T19:06:49.179Z caller=tls_config.go:232 level=info msg="Listening on" address=[::]:9187
ts=2023-05-01T19:06:49.179Z caller=tls_config.go:235 level=info msg="TLS is disabled." http2=false address=[::]:9187


The image can be configured through flags. Run it with the --help flag to see the full list:

$ docker run --help
usage: postgres_exporter [<flags>]

  -h, --[no-]help                Show context-sensitive help (also try
                                 --help-long and --help-man).
      --[no-]collector.database  Enable the database collector (default:
      --[no-]collector.bgwriter  Enable the bgwriter collector (default:
                                 Enable the replication_slot collector (default:
                                 Postgres exporter configuration file.
      --[no-]web.systemd-socket  Use systemd socket activation listeners instead
                                 of port listeners (Linux only).
      --web.listen-address=:9187 ...
                                 Addresses on which to expose metrics and web
                                 interface. Repeatable for multiple addresses.
      --web.config.file=""       [EXPERIMENTAL] Path to configuration file that
                                 can enable TLS or authentication.
                                 Path under which to expose metrics.
                                 Do not include default metrics.
                                 Do not include pg_settings metrics.
                                 Whether to discover the databases
                                 on a server dynamically.
      --extend.query-path=""     Path to custom queries to run.
      --[no-]dumpmaps            Do not run, simply dump the maps.
      --constantLabels=""        A list of label=value separated by comma(,).
      --exclude-databases=""     A list of databases to remove when
                                 autoDiscoverDatabases is enabled
      --include-databases=""     A list of databases to include when
                                 autoDiscoverDatabases is enabled
      --metric-prefix="pg"       A metric prefix can be used to have non-default
                                 (not "pg") prefixes for each of the metrics
      --[no-]version             Show application version.
      --log.level=info           Only log messages with the given severity or
                                 above. One of: [debug, info, warn, error]
      --log.format=logfmt        Output format of log messages. One of: [logfmt,

Last updated: 2024-02-29 16:25