cmd, metrics: add support for influxdb-v2 (cherry-picking from italoacasas'...
cmd, metrics: add support for influxdb-v2 (cherry-picking from italoacasas' changes), leave existing support for v1 to maintain backwards-compatibility. (#23194) This PR adds flag to enable InfluxDB v2 (--metrics.influxdbv2), flags for v2-specific features (--metrics.influxdb.token, --metrics.influxdb.bucket), also carries over addition of support for specifying organization (--metrics.influxdb.organization), but still retains backwards compatibility with InfluxDB v1.
Showing
... | ... | @@ -18,6 +18,7 @@ require ( |
github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f | ||
github.com/davecgh/go-spew v1.1.1 | ||
github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea | ||
github.com/deepmap/oapi-codegen v1.8.2 // indirect | ||
github.com/dlclark/regexp2 v1.2.0 // indirect | ||
github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf | ||
github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498 | ||
... | ... | @@ -39,13 +40,15 @@ require ( |
github.com/holiman/uint256 v1.2.0 | ||
github.com/huin/goupnp v1.0.2 | ||
github.com/influxdata/influxdb v1.8.3 | ||
github.com/influxdata/influxdb-client-go/v2 v2.4.0 | ||
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect | ||
github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458 | ||
github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e | ||
github.com/julienschmidt/httprouter v1.2.0 | ||
github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356 | ||
github.com/kylelemons/godebug v1.1.0 // indirect | ||
github.com/mattn/go-colorable v0.1.0 | ||
github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035 | ||
github.com/mattn/go-colorable v0.1.8 | ||
github.com/mattn/go-isatty v0.0.12 | ||
github.com/naoina/go-stringutil v0.1.0 // indirect | ||
github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416 | ||
github.com/olekukonko/tablewriter v0.0.5 | ||
... | ... | @@ -60,12 +63,14 @@ require ( |
github.com/tklauser/go-sysconf v0.3.5 // indirect | ||
github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef | ||
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 | ||
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect | ||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c | ||
golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988 | ||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da | ||
golang.org/x/text v0.3.6 | ||
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 | ||
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba | ||
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce | ||
gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6 | ||
gopkg.in/urfave/cli.v1 v1.20.0 | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gotest.tools v2.2.0+incompatible // indirect | ||
) |
此差异已折叠。
metrics/influxdb/influxdbv2.go
0 → 100644
想要评论请 注册 或 登录