1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-08-09 15:42:47 +03:00

Update README cli flags

These have not been kept up to date.

Signed-off-by: Joe Adams <github@joeadams.io>
This commit is contained in:
Joe Adams
2023-03-29 20:13:51 -04:00
parent 5f57b78442
commit a32ef40053

View File

@@ -77,9 +77,22 @@ This will build the docker image as `prometheuscommunity/postgres_exporter:${bra
* `collector.bgwriter` * `collector.bgwriter`
Enable the pg_stat_bgwriter collector. Default is `enabled` Enable the pg_stat_bgwriter collector. Default is `enabled`
* `collector.replication_slot`
Enable the replication_slot collector. Default is `enabled`
* `config.file`
Set the config file path. Default is `postgres_exporter.yml`
* `web.systemd-socket`
Use systemd socket activation listeners instead of port listeners (Linux only). Default is `false`
* `web.listen-address` * `web.listen-address`
Address to listen on for web interface and telemetry. Default is `:9187`. Address to listen on for web interface and telemetry. Default is `:9187`.
* `web.config.file`
Configuration file to use TLS and/or basic authentication. The format of the
file is described [in the exporter-toolkit repository](https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md).
* `web.telemetry-path` * `web.telemetry-path`
Path under which to expose metrics. Default is `/metrics`. Path under which to expose metrics. Default is `/metrics`.
@@ -118,10 +131,6 @@ This will build the docker image as `prometheuscommunity/postgres_exporter:${bra
* `log.format` * `log.format`
Set the log format: one of `logfmt`, `json`. Set the log format: one of `logfmt`, `json`.
* `web.config.file`
Configuration file to use TLS and/or basic authentication. The format of the
file is described [in the exporter-toolkit repository](https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md).
### Environment Variables ### Environment Variables
The following environment variables configure the exporter: The following environment variables configure the exporter: