Update README.md

This commit is contained in:
Will Rouesnel 2015-08-28 07:05:30 +10:00
parent ddf582dcdf
commit 48e00bf01f

View File

@ -6,9 +6,11 @@ Supported Postgres versions: 9.1 and up.
## Building and running
make
export DATA_SOURCE_NAME="login:password@(hostname:port)/dbname"
export DATA_SOURCE_NAME="postgres://postgres:password@localhost/?sslmode=disable"
./postgres_exporter <flags>
See the github.com/lib/pg module for other ways to format the connection string.
### Flags
Name | Description