-
Notifications
You must be signed in to change notification settings - Fork 2.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
[exporter/prometheusremotewrite] prometheusremotewrite exporter add option to send metadata #27565
[exporter/prometheusremotewrite] prometheusremotewrite exporter add option to send metadata #27565
Conversation
Hi, @Aneurysm9 @rapphil as I said here So after chatting with @gouthamve on Promcon, he suggested I should just choose a simple option for implementing support for sending the metadata in the remote write exporter and put it behind a config option. This is what I came up with. I would like some feedback on this before I add tests. Basically the same way we batch the metrics into a couple of requests that are below the max size of a single one, we repeat the same for metadata and send it as a separate set of requests. |
The one thing that stands out is that We talked about this in the Collector Sig on 10/18 and @jmichalek132 provided some clarification that upstream Prometheus already sends metadata but just less frequently. Current proposed implementation here would send it more often so that we don't have to maintain a metric -> metadata map. Also, implementation is opt in and behind feature gate here. Also, PRW 1.1 spec is in flight which contains metadata related changes. I have not read it yet and thus cannot provide a summary. Please provide corrections for anything I may have missed here. |
|
84e7e31
to
52e6c95
Compare
44dcea6
to
44c22dd
Compare
Pipeline failiures are unrelated to my changes, and come from other exporters. |
Co-authored-by: Antoine Toulme <[email protected]>
pkg/translator/prometheusremotewrite/otlp_to_openmetrics_metadata.go
Outdated
Show resolved
Hide resolved
pkg/translator/prometheusremotewrite/otlp_to_openmetrics_metadata.go
Outdated
Show resolved
Hide resolved
Co-authored-by: Anthony Mirabella <[email protected]>
…ption to send metadata (open-telemetry#27565) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> This PR adds an option to send metric Metadata to prometheus compatible backend (disabled by default). This contains information such as metric descrtiption, type, unit, and name. **Link to tracking Issue:** <Issue number if applicable> open-telemetry#13849 **Testing:** <Describe what testing was performed and which tests were added.> Tested in our testing environment with locally built image. **Documentation:** <Describe the documentation added.> --------- Co-authored-by: Antoine Toulme <[email protected]> Co-authored-by: Anthony Mirabella <[email protected]>
Description:
This PR adds an option to send metric Metadata to prometheus compatible backend (disabled by default). This contains information such as metric descrtiption, type, unit, and name.
Link to tracking Issue: #13849
Testing:
Tested in our testing environment with locally built image.
Documentation: