File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,30 @@ Package vendoring is handled with [`govendor`](https://github.com/kardianos/gove
4242* ` web.telemetry-path `
4343 Path under which to expose metrics.
4444
45+ ### Environment Variables
46+
47+ The following environment variables configure the exporter:
48+
49+ * ` DATA_SOURCE_NAME `
50+ the default legacy format. Accepts URI form and key=value form arguments. The
51+ URI may contain the username and password to connect with.
52+
53+ * ` DATA_SOURCE_URI `
54+ an alternative to DATA_SOURCE_NAME which exclusively accepts the raw URI
55+ without a username and password component.
56+
57+ * ` DATA_SOURCE_USER `
58+ When using ` DATA_SOURCE_URI ` , this environment variable is used to specify
59+ the username.
60+ * ` DATA_SOURCE_USER_FILE `
61+ The same, but reads the username from a file.
62+
63+ * ` DATA_SOURCE_PASS `
64+ When using ` DATA_SOURCE_URI ` , this environment variable is used to specify
65+ the password to connect with.
66+ * ` DATA_SOURCE_PASS_FILE `
67+ The same as above but reads the password from a file.
68+
4569### Setting the Postgres server's data source name
4670
4771The PostgreSQL server's [ data source name] ( http://en.wikipedia.org/wiki/Data_source_name )
You can’t perform that action at this time.
0 commit comments