Skip to content
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

[OtelMetrics] Counters have a suffix "_total" #6403

Closed
bogdandrutu opened this issue Oct 25, 2022 · 4 comments
Closed

[OtelMetrics] Counters have a suffix "_total" #6403

bogdandrutu opened this issue Oct 25, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@bogdandrutu
Copy link
Member

This is according to the Prometheus specs, but inconsistent with what was there before. We need to check that metrics scraped by otel/collector prometheus receiver remove this suffix and we are good then, otherwise this is a breaking change.

@bogdandrutu bogdandrutu added the bug Something isn't working label Oct 25, 2022
@bogdandrutu
Copy link
Member Author

@paivagustavo
Copy link
Member

@bogdandrutu tried this out today, and the prometheus receiver doesn't remove neither unit or type suffixes. Otel-go has an option to disable the units suffixes (_bytes, _ratio and _milliseconds) but not the type suffixes (_total).

There is an open ticket on the contrib repo tracking this open-telemetry/opentelemetry-collector-contrib#8950. I'll try to make some time this week or the next to work on that.

@paivagustavo
Copy link
Member

#6559 addresses the unit suffixes: _bytes, _ratio and _milliseconds

open-telemetry/opentelemetry-collector-contrib#16071 addresses the type suffixes: _total

@codeboten
Copy link
Contributor

This was addressed some time ago, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants