We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I use non-integer numbers in buckets for a classic histogram, an error is thrown when scraping metrics
Sample code to reproduce the error
package io.prometheus.metrics.simpleclient.bridge; import io.prometheus.client.CollectorRegistry; import io.prometheus.client.Histogram; import io.prometheus.metrics.model.registry.PrometheusRegistry; public class Test { public static void main(String[] args) { CollectorRegistry origRegistry = new CollectorRegistry(); PrometheusRegistry newRegistry = new PrometheusRegistry(); SimpleclientCollector.builder() .collectorRegistry(origRegistry) .register(newRegistry); Histogram histogram = Histogram.build() .name("response_size_bytes") .help("response size in Bytes") .labelNames("status") .buckets(0.01, 0.1) .register(origRegistry); histogram.labels("200").observe(1); newRegistry.scrape(); // throws IllegalArgumentException: Counts in ClassicHistogramBuckets cannot be negative. } }
The text was updated successfully, but these errors were encountered:
Fixes issue prometheus#887: Sort histogram bounds before validation
da0d48b
c6bc386
Signed-off-by: Aleksandr Turchenko <aleksandr.turchenko@lightspeedhq.com>
#887 otlp exporter exemplars (#883)
e9a0468
Signed-off-by: Greg Eales <0x006ea1e5@gmail.com>
Fixes issue #887: Sort histogram bounds before validation (#888)
c4dc833
No branches or pull requests
If I use non-integer numbers in buckets for a classic histogram, an error is thrown when scraping metrics
Sample code to reproduce the error
The text was updated successfully, but these errors were encountered: