diff --git a/command/server/config.go b/command/server/config.go index dd3f5dce95..7f07015a54 100644 --- a/command/server/config.go +++ b/command/server/config.go @@ -441,8 +441,9 @@ func DefaultConfig() *Config { }, Ethstats: "", Telemetry: &TelemetryConfig{ - Enabled: false, - Expensive: false, + Enabled: false, + Expensive: false, + PrometheusAddr: "", InfluxDB: &InfluxDBConfig{ V1Enabled: false, Endpoint: "", diff --git a/command/server/flags.go b/command/server/flags.go index 303e5e9818..9b13cc44bc 100644 --- a/command/server/flags.go +++ b/command/server/flags.go @@ -396,6 +396,11 @@ func (c *Command) Flags() *flagset.Flagset { Usage: "Comma-separated InfluxDB tags (key/values) attached to all measurements", Value: &c.cliConfig.Telemetry.InfluxDB.Tags, }) + f.StringFlag(&flagset.StringFlag{ + Name: "metrics.prometheus-addr", + Usage: "Address for Prometheus Server", + Value: &c.cliConfig.Telemetry.PrometheusAddr, + }) // influx db v2 f.BoolFlag(&flagset.BoolFlag{ Name: "metrics.influxdbv2",