Change default prometheus_client port (#2973)

This commit is contained in:
Aleksey Shirokih
2017-06-30 00:03:42 +03:00
committed by Daniel Nelson
parent daecb88808
commit 45c1fd1950
4 changed files with 6 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ type PrometheusClient struct {
var sampleConfig = `
## Address to listen on
# listen = ":9126"
# listen = ":9273"
## Interval to expire metrics and not deliver to prometheus, 0 == no expiration
# expiration_interval = "60s"
@@ -67,7 +67,7 @@ func (p *PrometheusClient) Start() error {
prometheus.Register(p)
if p.Listen == "" {
p.Listen = "localhost:9126"
p.Listen = "localhost:9273"
}
mux := http.NewServeMux()