-
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
[receiver/prometheusreceiver] Can't scrape histogram and summary at the same time (Prometheus receiver) #12976
Comments
Pinging code owners: @Aneurysm9 @dashpole. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
How are you producing those metrics? It looks like you are trying to have a single metric which is both a histogram and a summary, which isn't possible in prometheus. What |
I use Spring boot library "micrometer-registry-prometheus" which exposes prometheus type metrics. But the metric has quantile label or bucket label. The format looks like summary and histogram. |
OpenTelemetry doesn't currently have a data format which is both a histogram and a summary, so i'm not sure we can correctly represent the histogram + summary "combo" metric you have. There are a few things that we might be able to do:
Would you have found either of the above helpful? You might be able to work around this by dropping the summary series using prometheus relabel rules (with something like): metric_relabel_configs:
- source_labels: [__name__]
regex: lettuce_command_completion_seconds
action: drop |
I think first one is better for me. Because I can't collect all metrics because of the histogram metric. |
I'm not sure we want to do anything to support this use case. @Aneurysm9 @dashpole WDYT? Can we close the issue? |
I looked at the implementation, and it looks like it should have been sending the histogram-portion of the metric correctly already. The error described above just drops the summary point. |
I opened #13317 to improve the error message, but I don't think there is more we can do |
Hey @dashpole, we have one service that also uses the described metric here. Although you are saying it should only drop the summary metric, it seems like the collector drops all metrics and prints a warn log with |
We are fixing this behavior in #24030 |
Awesome thanks! |
Hello. I want to collect histogram and summary at the same time.
Prometheus exports the metric, but opentelemetry says error message.
Prometheus Metrics (I removed another labels like host, remote.)
lettuce_command_completion_seconds{command="SET",quantile="0.5",} 0.0
lettuce_command_completion_seconds{command="SET",quantile="0.9",} 0.0
lettuce_command_completion_seconds_bucket{command="SET",le="0.001",} 7.0
lettuce_command_completion_seconds_bucket{command="SET",le="0.001048576",} 9.0
Opentelemetry collector
..."error": "BucketLabel or QuantileLabel is empty"...
Is it impossible to scrape histogram and summary at the same time?
I use opentelemetry-collector-contrib:0.56.0.
The text was updated successfully, but these errors were encountered: