Change default prometheus_client port (#2973)
This commit is contained in:
committed by
Daniel Nelson
parent
75dbf2b0f8
commit
a8a637809e
@@ -8,7 +8,7 @@ This plugin starts a [Prometheus](https://prometheus.io/) Client, it exposes all
|
||||
# Publish all metrics to /metrics for Prometheus to scrape
|
||||
[[outputs.prometheus_client]]
|
||||
# Address to listen on
|
||||
listen = ":9126"
|
||||
listen = ":9273"
|
||||
|
||||
# Expiration interval for each metric. 0 == no expiration
|
||||
expiration_interval = "60s"
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user