aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2019-01-29 16:14:24 +0800
committerFelix Lange <fjl@users.noreply.github.com>2019-01-29 16:14:24 +0800
commit21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e (patch)
tree3ce729edabe2bb62ac5579dad5e9f3c0d7d010c9 /cmd/geth
parentb04da9d48227b5d020a9668d06a5b92cb6746540 (diff)
downloadgo-tangerine-21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e.tar
go-tangerine-21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e.tar.gz
go-tangerine-21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e.tar.bz2
go-tangerine-21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e.tar.lz
go-tangerine-21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e.tar.xz
go-tangerine-21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e.tar.zst
go-tangerine-21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e.zip
cmd/utils: allow for multiple influxdb tags (#18520)
This PR is replacing the metrics.influxdb.host.tag cmd-line flag with metrics.influxdb.tags - a comma-separated key/value tags, that are passed to the InfluxDB reporter, so that we can index measurements with multiple tags, and not just one host tag. This will be useful for Swarm, where we want to index measurements not just with the host tag, but also with bzzkey and git commit version (for long-running deployments).
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/main.go4
-rw-r--r--cmd/geth/usage.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 2be2bca95..77c04ff36 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -38,7 +38,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/metrics"
"github.com/ethereum/go-ethereum/node"
- "gopkg.in/urfave/cli.v1"
+ cli "gopkg.in/urfave/cli.v1"
)
const (
@@ -173,7 +173,7 @@ var (
utils.MetricsInfluxDBDatabaseFlag,
utils.MetricsInfluxDBUsernameFlag,
utils.MetricsInfluxDBPasswordFlag,
- utils.MetricsInfluxDBHostTagFlag,
+ utils.MetricsInfluxDBTagsFlag,
}
)
diff --git a/cmd/geth/usage.go b/cmd/geth/usage.go
index fd8ec7cd9..de2a3d073 100644
--- a/cmd/geth/usage.go
+++ b/cmd/geth/usage.go
@@ -26,7 +26,7 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/internal/debug"
- "gopkg.in/urfave/cli.v1"
+ cli "gopkg.in/urfave/cli.v1"
)
// AppHelpTemplate is the test template for the default, global app help topic.
@@ -229,7 +229,7 @@ var AppHelpFlagGroups = []flagGroup{
utils.MetricsInfluxDBDatabaseFlag,
utils.MetricsInfluxDBUsernameFlag,
utils.MetricsInfluxDBPasswordFlag,
- utils.MetricsInfluxDBHostTagFlag,
+ utils.MetricsInfluxDBTagsFlag,
},
},
{