---
name: "prometheus-postgres-exporter"
section: "1"
platform: "linux"
package: "prometheus-postgres-exporter"
version: "0.17.1-1+b4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/prometheus-postgres-exporter"
---

# prometheus-postgres-exporter(1)

Prometheus exporter for PostgreSQL

## NAME

prometheus-postgres-exporter - Prometheus exporter for PostgreSQL

## SYNOPSIS

- **prometheus-postgres-exporter \[\<flags\>\]**

  ## DESCRIPTION

## OPTIONS

- **-h, --help**

  Show context-sensitive help (also try --help-long and --help-man).

- **--collector.database**

  Enable the database collector (default: enabled).

- **--collector.database\_wraparound**

  Enable the database\_wraparound collector (default: disabled).

- **--collector.locks**

  Enable the locks collector (default: enabled).

- **--collector.long\_running\_transactions**

  Enable the long\_running\_transactions collector (default: disabled).

- **--collector.postmaster**

  Enable the postmaster collector (default: disabled).

- **--collector.process\_idle**

  Enable the process\_idle collector (default: disabled).

- **--collector.replication**

  Enable the replication collector (default: enabled).

- **--collector.replication\_slot**

  Enable the replication\_slot collector (default: enabled).

- **--collector.roles**

  Enable the roles collector (default: enabled).

- **--collector.stat\_activity\_autovacuum**

  Enable the stat\_activity\_autovacuum collector (default: disabled).

- **--collector.stat\_bgwriter**

  Enable the stat\_bgwriter collector (default: enabled).

- **--collector.stat\_checkpointer**

  Enable the stat\_checkpointer collector (default: disabled).

- **--collector.stat\_database**

  Enable the stat\_database collector (default: enabled).

- **--collector.stat\_statements**

  Enable the stat\_statements collector (default: disabled).

- **--collector.stat\_user\_tables**

  Enable the stat\_user\_tables collector (default: enabled).

- **--collector.stat\_wal\_receiver**

  Enable the stat\_wal\_receiver collector (default: disabled).

- **--collector.statio\_user\_indexes**

  Enable the statio\_user\_indexes collector (default: disabled).

- **--collector.statio\_user\_tables**

  Enable the statio\_user\_tables collector (default: enabled).

- **--collector.wal**

  Enable the wal collector (default: enabled).

- **--collector.xlog\_location**

  Enable the xlog\_location collector (default: disabled).

- **--config.file**

  Postgres exporter configuration file.

- **--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. Examples: \`:9100\` or \`\[::1\]:9100\` for http, \`vsock://:9100\` for vsock

- **--web.config.file**

  Path to configuration file that can enable TLS or authentication. See: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md

- **--web.telemetry-path**

  Path under which to expose metrics.

- **--disable-default-metrics**

  Do not include default metrics.

- **--disable-settings-metrics**

  Do not include pg\_settings metrics.

- **--auto-discover-databases**

  Whether to discover the databases on a server dynamically. (DEPRECATED)

- **--extend.query-path**

  Path to custom queries to run. (DEPRECATED)

- **--dumpmaps**

  Do not run, simply dump the maps.

- **--constantLabels**

  A list of label=value separated by comma(,). (DEPRECATED)

- **--exclude-databases**

  A list of databases to remove when autoDiscoverDatabases is enabled (DEPRECATED)

- **--include-databases**

  A list of databases to include when autoDiscoverDatabases is enabled (DEPRECATED)

- **--metric-prefix**

  A metric prefix can be used to have non-default (not "pg") prefixes for each of the metrics

- **--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, json\]
