TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Practical Introduction to Prometheus for Developers

41 pointsby melzareiover 5 years ago

3 comments

personomasover 5 years ago
&gt; the second is how the 99th percentile reported by the the summary (1s) is quite different than the one estimated by the histogram_quantile() function (~2.2s). How can this be?<p>&gt; ... for the quantile estimation from the buckets of a histogram to be accurate, we need to be careful when choosing the bucket layout; if it doesn&#x27;t match the range and distribution of the actual observed durations, you will get inaccurate quantiles as a result.<p>&gt; According to the previous plot, all slow requests from our application are falling into the 1s-2.5s bucket, resulting in this loss of precision when calculating the 99th percentile.<p>Can anyone explain mathematically why this is happening? I think I understand conceptually, but if I could also perhaps understand it from a mathematical perspective, I would feel much more confident!<p>By the way, I think it&#x27;s a great introduction!
collywover 5 years ago
Good timing, I just started working with Prometheus this week.
machawinkaover 5 years ago
Well written.