-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add prometheus metric prefix and constant service attributes to otel-go prometheus exporter #6223
Add prometheus metric prefix and constant service attributes to otel-go prometheus exporter #6223
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.
LGTM overall, waiting for last nits.
Codecov ReportBase: 92.19% // Head: 92.17% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #6223 +/- ##
==========================================
- Coverage 92.19% 92.17% -0.02%
==========================================
Files 219 219
Lines 13475 13488 +13
==========================================
+ Hits 12423 12433 +10
- Misses 823 825 +2
- Partials 229 230 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
1761697
to
4121258
Compare
Description: This wraps
prometheus.Registry
with theotelcol_
prefix and theservice_
attributes as these are not supported directly by the OpenTelemetry Go Prometheus Exporter.This ensures that metrics exported by otel-go is consistent with the existing opencensus metrics.
Link to tracking Issue: #5882
Testing: Manual tested by adding a otel-go metric and testing this.