-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Downgrade otel-go (#13429) #13466
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
Downgrade otel-go (#13429) #13466
Conversation
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> Downgrades opentelemetry-go dependencies effectively reverting open-telemetry#13289 and others - Due to a [bug](open-telemetry/opentelemetry-go#7039) in the prometheus exporter, if you are configuring a prometheus exporter, the collector's internal metrics will be emitted with an unexpected suffix in its name. For example, the metric `otelcol_exporter_sent_spans__spans__total` instead of `otelcol_exporter_sent_spans_total`. The workaround is to manually configure `without_units: true` in your prometheus exporter config ```yaml service: telemetry: metrics: readers: - pull: exporter: prometheus: host: 0.0.0.0 port: 8888 without_units: true ``` If you are using the collector's default Prometheus exporter for exporting internal metrics you are unaffected. --------- Signed-off-by: alex boten <[email protected]> Co-authored-by: alex boten <[email protected]> Co-authored-by: Yang Song <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13466 +/- ##
=======================================
Coverage 91.44% 91.44%
=======================================
Files 533 533
Lines 29564 29566 +2
=======================================
+ Hits 27034 27036 +2
Misses 1998 1998
Partials 532 532 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mx-psi
left a comment
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.
@ArthurSens @dashpole would appreciate a review from your side, thx!
|
Is there a new bug opened to track this in prometheus? |
looks like it's prometheus/otlptranslator#44 |
…41869) #### Description Similar to open-telemetry/opentelemetry-collector-releases#1067 but for contrib This avoids accidentally pulling in go.opentelemetry.io/otel/exporters/prometheus v0.59.x when building your distros. v0.59.x has a known bug in metric names. See open-telemetry/opentelemetry-collector#13466. #### Link to tracking issue open-telemetry/opentelemetry-collector#13544
…and status check (#255) Context: open-telemetry/opentelemetry-collector#13466 go.opentelemetry.io/otel/exporters/prometheus v0.59.x has a bug leading to unexpected suffix in metric names, we need to stay with v0.58.0 to make `observe-agent status` work.
cherry-pick of d82267d
go.opentelemetry.io/otel/exporters/prometheus v0.59.1does not fully fix the metric name issue so we have to revert to v0.58.0Downgrades opentelemetry-go dependencies effectively reverting #13289 and others
otelcol_exporter_sent_spans__spans__totalinstead ofotelcol_exporter_sent_spans_total. The workaround is to manually configurewithout_units: truein your prometheus exporter configIf you are using the collector's default Prometheus exporter for exporting internal metrics you are unaffected.