-
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
prometheusreceiver: possible incorrect metric name for cumulative metrics #13117
Comments
by looking at the code, I understand the need to trim necessary suffix so to group metrics together for histogram & summary, not quite sure why sum/counter type is needed? |
Pinging code owners: @Aneurysm9. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@dashpole is this a correct OpenMetrics input? Or a Prometheus? Based on https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#counter-1 we should have something like:
|
@bogdandrutu what you pasted is valid for OpenMetrics, but not valid for prometheus. I'm not aware of a way for us to know which format (OM vs prom) the scrape was in, so we have to choose which to handle correctly: OpenMetrics (only one valid option):
Vs Prometheus:
Note that |
Thanks for the explanation, is anyone in the Prometheus ecosystem that can tell us their opinion? |
I'll raise it for discussion at the prometheus working group |
Discussed at the prometheus WG today:
|
Describe the bug
given metrics like the following, exported metrics will only be
envoy_cluster_upstream_rq
when
envoy_cluster_upstream_rq
appears first, the family name will beenvoy_cluster_upstream_rq
, normalizeMetricName returns the same metric name, later whenenvoy_cluster_upstream_rq_total
comes, after normalized, it will beenvoy_cluster_upstream_rq
, thus they will be grouped into the same metric familySteps to reproduce
test prometheus receiver with above metrics
What did you expect to see?
4
envoy_cluster_upstream_rq
metrics and 6envoy_cluster_upstream_rq_total
metricsWhat did you see instead?
10
envoy_cluster_upstream_rq
metrics.What version did you use?
Version: (e.g.,
v0.4.0
,1eb551b
, etc)What config did you use?
Config: (e.g. the yaml config file)
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: