Update README.md

Update README with a workable connection string for local use.
This commit is contained in:
Will Rouesnel 2015-09-07 15:25:10 +10:00
parent f8c46f1f15
commit c931b83b7c

View File

@ -23,6 +23,10 @@ web.telemetry-path | Path under which to expose metrics.
The PostgresSQL server's [data source name](http://en.wikipedia.org/wiki/Data_source_name) The PostgresSQL server's [data source name](http://en.wikipedia.org/wiki/Data_source_name)
must be set via the `DATA_SOURCE_NAME` environment variable. must be set via the `DATA_SOURCE_NAME` environment variable.
For running it locally on a default Debian/Ubuntu install, this will work (transpose to init script as appropriate):
sudo -u postgres DATA_SOURCE_NAME="user=postgres host=/var/run/postgresql/ sslmode=disable" postgres_exporter
### Adding new metrics ### Adding new metrics
The exporter will attempt to dynamically export additional metrics if they are added in the The exporter will attempt to dynamically export additional metrics if they are added in the