@@ -43,6 +43,9 @@ Package vendoring is handled with [`govendor`](https://github.com/kardianos/gove
4343
4444### Flags
4545
46+ * ` help `
47+ Show context-sensitive help (also try --help-long and --help-man).
48+
4649* ` web.listen-address `
4750 Address to listen on for web interface and telemetry. Default is ` :9187 ` .
4851
@@ -55,6 +58,9 @@ Package vendoring is handled with [`govendor`](https://github.com/kardianos/gove
5558* ` disable-settings-metrics `
5659 Use the flag if you don't want to scrape ` pg_settings ` .
5760
61+ * ` auto-discover-databases `
62+ Whether to discover the databases on a server dynamically.
63+
5864* ` extend.query-path `
5965 Path to a YAML file containing custom queries to run. Check out [ ` queries.yaml ` ] ( queries.yaml )
6066 for examples of the format.
@@ -63,16 +69,22 @@ Package vendoring is handled with [`govendor`](https://github.com/kardianos/gove
6369 Do not run - print the internal representation of the metric maps. Useful when debugging a custom
6470 queries file.
6571
72+ * ` constantLabels `
73+ Labels to set in all metrics. A list of ` label=value ` pairs, separated by commas.
74+
75+ * ` version `
76+ Show application version.
77+
78+ * ` exclude-databases `
79+ A list of databases to remove when autoDiscoverDatabases is enabled.
80+
6681* ` log.level `
6782 Set logging level: one of ` debug ` , ` info ` , ` warn ` , ` error ` , ` fatal `
6883
6984* ` log.format `
7085 Set the log output target and format. e.g. ` logger:syslog?appname=bob&local=7 ` or ` logger:stdout?json=true `
7186 Defaults to ` logger:stderr ` .
7287
73- * ` constantLabels `
74- Labels to set in all metrics. A list of ` label=value ` pairs, separated by commas.
75-
7688### Environment Variables
7789
7890The following environment variables configure the exporter:
@@ -114,13 +126,19 @@ The following environment variables configure the exporter:
114126* ` PG_EXPORTER_DISABLE_SETTINGS_METRICS `
115127 Use the flag if you don't want to scrape ` pg_settings ` . Value can be ` true ` or ` false ` . Defauls is ` false ` .
116128
129+ * ` PG_EXPORTER_AUTO_DISCOVER_DATABASES `
130+ Whether to discover the databases on a server dynamically. Value can be ` true ` or ` false ` . Defauls is ` false ` .
131+
117132* ` PG_EXPORTER_EXTEND_QUERY_PATH `
118133 Path to a YAML file containing custom queries to run. Check out [ ` queries.yaml ` ] ( queries.yaml )
119134 for examples of the format.
120135
121136* ` PG_EXPORTER_CONSTANT_LABELS `
122137 Labels to set in all metrics. A list of ` label=value ` pairs, separated by commas.
123138
139+ * ` PG_EXPORTER_EXCLUDE_DATABASES `
140+ A comma-separated list of databases to remove when autoDiscoverDatabases is enabled. Default is empty string.
141+
124142Settings set by environment variables starting with ` PG_ ` will be overwritten by the corresponding CLI flag if given.
125143
126144### Setting the Postgres server's data source name
0 commit comments