|
@@ -684,12 +684,12 @@ var (
|
|
|
MetricsHTTPFlag = cli.StringFlag{
|
|
MetricsHTTPFlag = cli.StringFlag{
|
|
|
Name: "metrics.addr",
|
|
Name: "metrics.addr",
|
|
|
Usage: "Enable stand-alone metrics HTTP server listening interface",
|
|
Usage: "Enable stand-alone metrics HTTP server listening interface",
|
|
|
- Value: "127.0.0.1",
|
|
|
|
|
|
|
+ Value: metrics.DefaultConfig.HTTP,
|
|
|
}
|
|
}
|
|
|
MetricsPortFlag = cli.IntFlag{
|
|
MetricsPortFlag = cli.IntFlag{
|
|
|
Name: "metrics.port",
|
|
Name: "metrics.port",
|
|
|
Usage: "Metrics HTTP server listening port",
|
|
Usage: "Metrics HTTP server listening port",
|
|
|
- Value: 6060,
|
|
|
|
|
|
|
+ Value: metrics.DefaultConfig.Port,
|
|
|
}
|
|
}
|
|
|
MetricsEnableInfluxDBFlag = cli.BoolFlag{
|
|
MetricsEnableInfluxDBFlag = cli.BoolFlag{
|
|
|
Name: "metrics.influxdb",
|
|
Name: "metrics.influxdb",
|
|
@@ -698,22 +698,22 @@ var (
|
|
|
MetricsInfluxDBEndpointFlag = cli.StringFlag{
|
|
MetricsInfluxDBEndpointFlag = cli.StringFlag{
|
|
|
Name: "metrics.influxdb.endpoint",
|
|
Name: "metrics.influxdb.endpoint",
|
|
|
Usage: "InfluxDB API endpoint to report metrics to",
|
|
Usage: "InfluxDB API endpoint to report metrics to",
|
|
|
- Value: "http://localhost:8086",
|
|
|
|
|
|
|
+ Value: metrics.DefaultConfig.InfluxDBEndpoint,
|
|
|
}
|
|
}
|
|
|
MetricsInfluxDBDatabaseFlag = cli.StringFlag{
|
|
MetricsInfluxDBDatabaseFlag = cli.StringFlag{
|
|
|
Name: "metrics.influxdb.database",
|
|
Name: "metrics.influxdb.database",
|
|
|
Usage: "InfluxDB database name to push reported metrics to",
|
|
Usage: "InfluxDB database name to push reported metrics to",
|
|
|
- Value: "geth",
|
|
|
|
|
|
|
+ Value: metrics.DefaultConfig.InfluxDBDatabase,
|
|
|
}
|
|
}
|
|
|
MetricsInfluxDBUsernameFlag = cli.StringFlag{
|
|
MetricsInfluxDBUsernameFlag = cli.StringFlag{
|
|
|
Name: "metrics.influxdb.username",
|
|
Name: "metrics.influxdb.username",
|
|
|
Usage: "Username to authorize access to the database",
|
|
Usage: "Username to authorize access to the database",
|
|
|
- Value: "test",
|
|
|
|
|
|
|
+ Value: metrics.DefaultConfig.InfluxDBUsername,
|
|
|
}
|
|
}
|
|
|
MetricsInfluxDBPasswordFlag = cli.StringFlag{
|
|
MetricsInfluxDBPasswordFlag = cli.StringFlag{
|
|
|
Name: "metrics.influxdb.password",
|
|
Name: "metrics.influxdb.password",
|
|
|
Usage: "Password to authorize access to the database",
|
|
Usage: "Password to authorize access to the database",
|
|
|
- Value: "test",
|
|
|
|
|
|
|
+ Value: metrics.DefaultConfig.InfluxDBPassword,
|
|
|
}
|
|
}
|
|
|
// Tags are part of every measurement sent to InfluxDB. Queries on tags are faster in InfluxDB.
|
|
// Tags are part of every measurement sent to InfluxDB. Queries on tags are faster in InfluxDB.
|
|
|
// For example `host` tag could be used so that we can group all nodes and average a measurement
|
|
// For example `host` tag could be used so that we can group all nodes and average a measurement
|
|
@@ -722,7 +722,7 @@ var (
|
|
|
MetricsInfluxDBTagsFlag = cli.StringFlag{
|
|
MetricsInfluxDBTagsFlag = cli.StringFlag{
|
|
|
Name: "metrics.influxdb.tags",
|
|
Name: "metrics.influxdb.tags",
|
|
|
Usage: "Comma-separated InfluxDB tags (key/values) attached to all measurements",
|
|
Usage: "Comma-separated InfluxDB tags (key/values) attached to all measurements",
|
|
|
- Value: "host=localhost",
|
|
|
|
|
|
|
+ Value: metrics.DefaultConfig.InfluxDBTags,
|
|
|
}
|
|
}
|
|
|
EWASMInterpreterFlag = cli.StringFlag{
|
|
EWASMInterpreterFlag = cli.StringFlag{
|
|
|
Name: "vm.ewasm",
|
|
Name: "vm.ewasm",
|