From 48e00bf01f6f0ab700acafdf4753b56f3ce234ac Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Fri, 28 Aug 2015 07:05:30 +1000 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a8215ec..efebda58 100644 --- a/README.md +++ b/README.md @@ -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 +See the github.com/lib/pg module for other ways to format the connection string. + ### Flags Name | Description @@ -35,4 +37,4 @@ for l in StringIO(x): print """"{0}" : {{ prometheus.CounterValue, prometheus.NewDesc("pg_stat_database_{0}", "{2}", nil, nil) }}, """.format(column.strip(), ctype, description.strip()) ``` Adjust the value of the resultant prometheus value type appropriately. This helps build -rich self-documenting metrics for the exporter. \ No newline at end of file +rich self-documenting metrics for the exporter.