From c931b83b7c41950ed5a77603331999ded811f689 Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Mon, 7 Sep 2015 15:25:10 +1000 Subject: [PATCH] Update README.md Update README with a workable connection string for local use. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2d3af462..d6451d59 100644 --- a/README.md +++ b/README.md @@ -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) 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 The exporter will attempt to dynamically export additional metrics if they are added in the