PROMETHEUS-POSTGRES-EXPORTER(1)
π PROMETHEUS-POSTGRES-EXPORTER π
okay bestie, sit down, hydrate, because we're talking about prometheus-postgres-exporter β that's the prometheus-postgres-exporter(1) girlies, section 1 of your manual, the one you call when you need your PostgreSQL stats looking cute and Prometheus-shaped. she's an exporter. she takes Postgres metrics and hands them over. no cap. β¨
πΈ SYNOPSIS πΈ
prometheus-postgres-exporter [<flags>]
π¦ DESCRIPTION π¦
so the original page... leaves this one blank. literally nothing. iconic silence, honestly. but that's fine because everything you actually need lives down in OPTIONS, and she did not hold back there. let's go. π
β¨ OPTIONS β¨
-h,--helpβ shows you context-sensitive help π and psst, you can also try--help-longand--help-manif you want the extended cut.
π§ collectors π§
every single one of these turns a collector on or off, and the default is stated right there, so read carefully bestie. i've kept all of them exactly as she wrote them.
--collector.buffercache_summaryβ turns on thebuffercache_summarycollector (default: disabled).--collector.databaseβ turns on thedatabasecollector (default: enabled).--collector.database_wraparoundβ turns on thedatabase_wraparoundcollector (default: disabled).--collector.locksβ turns on thelockscollector (default: enabled).--collector.long_running_transactionsβ turns on thelong_running_transactionscollector (default: disabled).--collector.postmasterβ turns on thepostmastercollector (default: disabled).--collector.process_idleβ turns on theprocess_idlecollector (default: disabled).--collector.replicationβ turns on thereplicationcollector (default: enabled).--collector.replication_slotβ turns on thereplication_slotcollector (default: enabled).--collector.rolesβ turns on therolescollector (default: enabled).--collector.stat_activity_autovacuumβ turns on thestat_activity_autovacuumcollector (default: disabled).--collector.stat_bgwriterβ turns on thestat_bgwritercollector (default: enabled).--collector.stat_checkpointerβ turns on thestat_checkpointercollector (default: disabled).--collector.stat_databaseβ turns on thestat_databasecollector (default: enabled).--collector.stat_progress_vacuumβ turns on thestat_progress_vacuumcollector (default: enabled).--collector.stat_statementsβ turns on thestat_statementscollector (default: disabled).--collector.stat_statements.include_queryβ lets you select the statement query together withqueryId(default: disabled).--collector.stat_statements.query_length=120β the max length of the statement text. one hundred and twenty, exactly as written.--collector.stat_statements.limit=100β the max number of statements to return.--collector.stat_statements.exclude_databasesβ a comma-separated list of database names to exclude (default: none).--collector.stat_statements.exclude_usersβ a comma-separated list of user names to exclude (default: none).--collector.stat_user_tablesβ turns on thestat_user_tablescollector (default: enabled).--collector.stat_wal_receiverβ turns on thestat_wal_receivercollector (default: disabled).--collector.statio_user_indexesβ turns on thestatio_user_indexescollector (default: disabled).--collector.statio_user_tablesβ turns on thestatio_user_tablescollector (default: enabled).--collector.walβ turns on thewalcollector (default: enabled).--collector.xlog_locationβ turns on thexlog_locationcollector (default: disabled).
π config + web stuff π
--config.fileβ the Postgres exporter configuration file. that's the one.--web.systemd-socketβ use systemd socket activation listeners instead of port listeners. Linux only, bestie, don't try it elsewhere.--web.listen-address=:9187β the addresses where the metrics and the web interface get exposed. it's repeatable so you can stack multiple addresses. examples she gave::9100or[::1]:9100for http, andvsock://:9100for vsock π--web.config.fileβ path to a configuration file that can enable TLS or authentication. see:https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md--web.telemetry-pathβ the path under which to expose metrics.
π turning things off + discovery π
--disable-default-metricsβ do not include default metrics.--disable-settings-metricsβ do not includepg_settingsmetrics.--auto-discover-databasesβ whether to discover the databases on a server dynamically. (DEPRECATED) β οΈ--extend.query-pathβ path to custom queries to run. (DEPRECATED) β οΈ--dumpmapsβ don't run anything, just dump the maps. she said do not run. we listen. π--constantLabelsβ a list oflabel=valueseparated by comma(,). (DEPRECATED) β οΈ--exclude-databasesβ a list of databases to remove whenautoDiscoverDatabasesis enabled (DEPRECATED) β οΈ--include-databasesβ a list of databases to include whenautoDiscoverDatabasesis enabled (DEPRECATED) β οΈ--metric-prefixβ a metric prefix, for when you want non-default prefixes (so, anything that isn't"pg") on each of the metrics. yes, it's giving rebrand. π--collection-timeoutβ timeout for collecting the statistics when the database is slow. be patient with her.--versionβ show the application version.
π logging π
--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]
β οΈ heads up bestie:--auto-discover-databases,--extend.query-path,--constantLabels,--exclude-databasesand--include-databasesare all marked DEPRECATED. they still work, but she's side-eyeing them.
β οΈ --dumpmaps literally says do not run, simply dump the maps. do not run it expecting normal exporter behaviour. β
and that's the whole page, no skips, no shortcuts, every single flag accounted for π«Ά this was prometheus-postgres-exporter, version 0...., dated March 2026, and she ate. periodt. πβ¨ππ¦πΈπ
π¦ where this page comes from
- ubuntu stonking: prometheus-postgres-exporter 0.19.1-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms