-
Notifications
You must be signed in to change notification settings - Fork 20.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metrics/influxdb: Support V2 #23194
metrics/influxdb: Support V2 #23194
Conversation
I can see that this seems to work by looking at the schemas created in Influx, and also seeing that Geth is successfully pushing data. However, I ran into issues connecting it to Grafana using the auth token. Tried adding the auth token via an http header as suggested in https://community.grafana.com/t/grafana-issue-connecting-to-influxdb-2-0-3-influxql/42757/4 . But that didn't work. I probably won't have too much free time to continue digging on that this week. But the issue doesn't seem relevant to this PR (only ensuring that it works as expected). |
ea6a7ff
to
814912e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me!
…casas' changes), leave existing support for v1 to maintain backwards-compatibility. Co-authored-by: Jared Wasinger <j-wasinger@hotmail.com> Co-authored-by: Italo A. Casas <me@italoacasas.com>
Rebased on master so I can test it more easily |
Ok, tested this with a local node against our grafana/influxv1 (obs: version 1) cluster. Seems to work fine, in the sense that it doesn't break the old stuff. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…casas' changes), leave existing support for v1 to maintain backwards-compatibility. (ethereum#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.
This PR builds on #22726:
* adds flag to enable 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
from #22726).* retains backwards compatibility with influxdb-v1.