-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[prometheusreceiver] Fix metrics being grouped into the same metrics family incorrectly #13213
Conversation
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.
Overall, I think this is a less bad thing to do.
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@Aneurysm9 could you please comment? |
# Conflicts: # receiver/prometheusreceiver/internal/otlp_metricsbuilder.go
# Conflicts: # receiver/prometheusreceiver/internal/metricsbuilder.go
@dashpole please do a final review and add the ready to merge label after. |
I think we should wait on this. I was able to discuss this at the prom wg yesterday (notes), and we concluded that we should see if it is possible for the appender to know if the metrics came from OpenMetrics or from Prometheus |
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 think we should wait on this. I was able to discuss this at the prom wg yesterday (#13117 (comment)), and we concluded that we should see if it is possible for the appender to know if the metrics came from OpenMetrics or from Prometheus
@dashpole do you want to add a request for change until this is unblocked?
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.
lets see if we can get a feature in upstream promethetheus that lets us know if the scrape was openmetrics or prometheus
Thanks @dashpole , do we have any prometheus issue being tracked for this currently? |
While writing up the issue, i've realized that knowing openmetrics vs prometheus won't help us. I was going to write:
But then I read in the OpenMetrics spec:
So the OpenMetrics example above is invalid. In that case, I think it is correct for us to accept this PR. |
# Conflicts: # receiver/prometheusreceiver/internal/transaction.go
@codeboten @Aneurysm9 could you please review this PR? |
…family incorrectly (open-telemetry#13213) Fix metrics being grouped into the same metrics family incorrectly Co-authored-by: David Ashpole <[email protected]>
Description:
Fix metrics being grouped into the same metrics family incorrectly
Link to tracking Issue:
Fixes #13117
Testing:
UT
Documentation:
n/a