Add configurable metrics endpoint to prometheus output (#3245)

This commit is contained in:
Paulo Cabido
2017-09-19 11:27:11 -07:00
committed by Daniel Nelson
parent cf69a97ae0
commit 43e2400612
3 changed files with 11 additions and 2 deletions

View File

@@ -445,6 +445,7 @@ func setupPrometheus() (*PrometheusClient, *prometheus_input.Prometheus, error)
if pTesting == nil {
pTesting = NewClient()
pTesting.Listen = "localhost:9127"
pTesting.Path = "/metrics"
err := pTesting.Start()
if err != nil {
return nil, nil, err