From e104c465a8db888985290d43e6039ee7598f85f0 Mon Sep 17 00:00:00 2001 From: Jaime Yera Hidalgo Date: Wed, 22 Mar 2023 12:22:53 +0100 Subject: [PATCH] ADD env var reader --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 89236ceb..4186c283 100644 --- a/main.go +++ b/main.go @@ -54,7 +54,7 @@ func main() { Default("/metrics").String() esURI = kingpin.Flag("es.uri", "HTTP API address of an Elasticsearch node."). - Default("http://localhost:9200").String() + Default("http://localhost:9200").Envar("ES_URI").String() esTimeout = kingpin.Flag("es.timeout", "Timeout for trying to get stats from Elasticsearch."). Default("5s").Duration()