From 6565c98ad5efa18899e8b049db1184aaac7d4dca Mon Sep 17 00:00:00 2001 From: Reda NOUSHI Date: Tue, 28 Jun 2016 23:56:47 +0000 Subject: [PATCH] Add queries file support --- postgres_exporter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgres_exporter.go b/postgres_exporter.go index 12ba8192..ec715409 100644 --- a/postgres_exporter.go +++ b/postgres_exporter.go @@ -30,6 +30,10 @@ var ( "web.telemetry-path", "/metrics", "Path under which to expose metrics.", ) + queriesPath = flag.String( + "extend.query-path", "", + "Path to custom queries to run.", + ) ) // Metric name parts.