aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2019-01-29 16:14:24 +0800
committerRafael Matias <rafael@skyle.net>2019-02-20 00:34:48 +0800
commit4f908db69e8cb69cdf45775c7c75e74244e91653 (patch)
tree62f6d418263720447e68b5f14ad744eb6390c697 /cmd/geth
parent320d132925ca0452272f80bfa7af491e5f7d39e5 (diff)
downloadgo-tangerine-4f908db69e8cb69cdf45775c7c75e74244e91653.tar
go-tangerine-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.gz
go-tangerine-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.bz2
go-tangerine-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.lz
go-tangerine-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.xz
go-tangerine-4f908db69e8cb69cdf45775c7c75e74244e91653.tar.zst
go-tangerine-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')
-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 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,
}
)
diff --git a/cmd/geth/usage.go b/cmd/geth/usage.go
index ed7e98bba..6823aa36c 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.
@@ -230,7 +230,7 @@ var AppHelpFlagGroups = []flagGroup{
utils.MetricsInfluxDBDatabaseFlag,
utils.MetricsInfluxDBUsernameFlag,
utils.MetricsInfluxDBPasswordFlag,
- utils.MetricsInfluxDBHostTagFlag,
+ utils.MetricsInfluxDBTagsFlag,
},
},
{