mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 00:43:46 +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: "",
|
Ethstats: "",
|
||||||
Telemetry: &TelemetryConfig{
|
Telemetry: &TelemetryConfig{
|
||||||
Enabled: false,
|
Enabled: false,
|
||||||
Expensive: false,
|
Expensive: false,
|
||||||
|
PrometheusAddr: "",
|
||||||
InfluxDB: &InfluxDBConfig{
|
InfluxDB: &InfluxDBConfig{
|
||||||
V1Enabled: false,
|
V1Enabled: false,
|
||||||
Endpoint: "",
|
Endpoint: "",
|
||||||
|
|
|
||||||
|
|
@ -396,6 +396,11 @@ func (c *Command) Flags() *flagset.Flagset {
|
||||||
Usage: "Comma-separated InfluxDB tags (key/values) attached to all measurements",
|
Usage: "Comma-separated InfluxDB tags (key/values) attached to all measurements",
|
||||||
Value: &c.cliConfig.Telemetry.InfluxDB.Tags,
|
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
|
// influx db v2
|
||||||
f.BoolFlag(&flagset.BoolFlag{
|
f.BoolFlag(&flagset.BoolFlag{
|
||||||
Name: "metrics.influxdbv2",
|
Name: "metrics.influxdbv2",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue