diff options
author | Anton Evangelatov <anton.evangelatov@gmail.com> | 2019-01-29 16:14:24 +0800 |
---|---|---|
committer | Rafael Matias <rafael@skyle.net> | 2019-02-20 00:34:48 +0800 |
commit | 4f908db69e8cb69cdf45775c7c75e74244e91653 (patch) | |
tree | 62f6d418263720447e68b5f14ad744eb6390c697 /cmd/geth/main.go | |
parent | 320d132925ca0452272f80bfa7af491e5f7d39e5 (diff) | |
download | dexon-4f908db69e8cb69cdf45775c7c75e74244e91653.tar dexon-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.gz dexon-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.bz2 dexon-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.lz dexon-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.xz dexon-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.zst dexon-4f908db69e8cb69cdf45775c7c75e74244e91653.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).
(cherry picked from commit 21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e)
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r-- | cmd/geth/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index c62fd87f2..e60a27e43 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 ( @@ -165,7 +165,7 @@ var ( utils.MetricsInfluxDBDatabaseFlag, utils.MetricsInfluxDBUsernameFlag, utils.MetricsInfluxDBPasswordFlag, - utils.MetricsInfluxDBHostTagFlag, + utils.MetricsInfluxDBTagsFlag, } ) |