mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
Added Prometheus Flag and Default
This commit is contained in:
parent
cd6a163391
commit
358e68364f
2 changed files with 8 additions and 2 deletions
|
|
@ -441,8 +441,9 @@ func DefaultConfig() *Config {
|
|||
},
|
||||
Ethstats: "",
|
||||
Telemetry: &TelemetryConfig{
|
||||
Enabled: false,
|
||||
Expensive: false,
|
||||
Enabled: false,
|
||||
Expensive: false,
|
||||
PrometheusAddr: "",
|
||||
InfluxDB: &InfluxDBConfig{
|
||||
V1Enabled: false,
|
||||
Endpoint: "",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue