We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d065db + e104c46 commit d094d38Copy full SHA for d094d38
main.go
@@ -54,7 +54,7 @@ func main() {
54
Default("/metrics").String()
55
esURI = kingpin.Flag("es.uri",
56
"HTTP API address of an Elasticsearch node.").
57
- Default("http://localhost:9200").String()
+ Default("http://localhost:9200").Envar("ES_URI").String()
58
esTimeout = kingpin.Flag("es.timeout",
59
"Timeout for trying to get stats from Elasticsearch.").
60
Default("5s").Duration()
0 commit comments