-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(outputs.influxdb_v3): Add plugin #16405
base: master
Are you sure you want to change the base?
Conversation
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
@@ -0,0 +1,113 @@ | |||
# InfluxDB v3.x Output Plugin | |||
|
|||
This plugin writes metrics to a [InfluxDB v3.x][influxdb_v3] instance via HTTP. |
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.
I cannot find any documentation about a specific v3 HTTP API:
https://docs.influxdata.com/influxdb3/cloud-serverless/reference/api/
https://docs.influxdata.com/influxdb3/cloud-serverless/write-data/
Could you point me where to look?
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.
Currently the only documentation is the code. Sorry! Take a look at the Getting Started guide. Will add a better link once the documentation is out.
Timeout config.Duration `toml:"timeout"` | ||
HTTPHeaders map[string]string `toml:"http_headers"` | ||
HTTPProxy string `toml:"http_proxy"` | ||
UserAgent string `toml:"user_agent"` | ||
ContentEncoding string `toml:"content_encoding"` |
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.
Can't most just come from common HTTPClientConfig?
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.
Good point. Will look into this.
|
||
// Setup the limited serializer | ||
serializer := &influx.Serializer{ | ||
UintSupport: i.UintSupport, |
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.
Why not always enable? It is supported by InfluxDBv3.
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.
I have to clarify what the current implementation status is. Thanks for the heads-up! If uint is supported I think we should unconditionally enable it.
Summary
This PR adds a new plugin to ease writing to InfluxDB v3 (Core and Enterprise) instances using the new API v3 endpoint to support partial writes.
Checklist
Related issues