update docs with examples of DATA_SOURCE_URI (#378)

this has a minor change to the wording and a couple of examples to demonstrate
the use of DATA_SOURCE_URI.

Closes #113
This commit is contained in:
Lars Kellogg-Stedman 2020-04-09 11:14:24 -04:00 committed by GitHub
parent aac3b0d919
commit 77d42931d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,8 +94,9 @@ The following environment variables configure the exporter:
URI may contain the username and password to connect with.
* `DATA_SOURCE_URI`
an alternative to `DATA_SOURCE_NAME` which exclusively accepts the raw URI
without a username and password component.
an alternative to `DATA_SOURCE_NAME` which exclusively accepts the hostname
without a username and password component. For example, `my_pg_hostname` or
`my_pg_hostname?sslmode=disable`.
* `DATA_SOURCE_URI_FILE`
The same as above but reads the URI from a file.