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
Hi ,
Recently I stumbled on one issue in which histogram metrics were not honoring the buckets passed during PrometheusMetrics initialization.
Code snippet
buckets = (0.005, 0.1, 0.2, INF) metrics = PrometheusMetrics(app, buckets=buckets) shorten_url_duration = metrics.histogram('shorten_url_duration', 'Duration of shorten_url call')
Sample Response
shorten_url_duration_bucket{le="0.005"} 0.0 shorten_url_duration_bucket{le="0.01"} 0.0 shorten_url_duration_bucket{le="0.025"} 0.0 shorten_url_duration_bucket{le="0.05"} 0.0 shorten_url_duration_bucket{le="0.075"} 0.0 shorten_url_duration_bucket{le="0.1"} 0.0 shorten_url_duration_bucket{le="0.25"} 0.0 shorten_url_duration_bucket{le="0.5"} 0.0 shorten_url_duration_bucket{le="0.75"} 0.0 shorten_url_duration_bucket{le="1.0"} 0.0 shorten_url_duration_bucket{le="2.5"} 0.0 shorten_url_duration_bucket{le="5.0"} 0.0 shorten_url_duration_bucket{le="7.5"} 0.0 shorten_url_duration_bucket{le="10.0"} 0.0 shorten_url_duration_bucket{le="+Inf"} 0.0
Expected Response
shorten_url_duration_bucket{le="0.005"} 0.0 shorten_url_duration_bucket{le="0.1"} 0.0 shorten_url_duration_bucket{le="0.2"} 0.0 shorten_url_duration_bucket{le="+Inf"} 0.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi ,
Recently I stumbled on one issue in which histogram metrics were not honoring the buckets passed during PrometheusMetrics initialization.
Code snippet
Sample Response
Expected Response
The text was updated successfully, but these errors were encountered: