Skip to content

Commit 456ac72

Browse files
Phil Frostwrouesnel
Phil Frost
authored andcommitted
Document --constantLabels
This functionality was added in c225a1e but not documented.
1 parent 844076c commit 456ac72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ Package vendoring is handled with [`govendor`](https://github.com/kardianos/gove
6565
Set the log output target and format. e.g. `logger:syslog?appname=bob&local=7` or `logger:stdout?json=true`
6666
Defaults to `logger:stderr`.
6767

68+
* `constantLabels`
69+
Labels to set in all metrics. A list of `label=value` pairs, separated by commas.
70+
6871
### Environment Variables
6972

7073
The following environment variables configure the exporter:
@@ -101,6 +104,9 @@ The following environment variables configure the exporter:
101104
* `PG_EXPORTER_EXTEND_QUERY_PATH`
102105
Path to a YAML file containing custom queries to run. Check out [`queries.yaml`](queries.yaml)
103106
for examples of the format.
107+
108+
* `PG_EXPORTER_CONTANT_LABELS`
109+
Labels to set in all metrics. A list of `label=value` pairs, separated by commas.
104110

105111
Settings set by environment variables starting with `PG_` will be overwritten by the corresponding CLI flag if given.
106112

0 commit comments

Comments
 (0)