0

I'm using multiple Prometheus histogram metrics following the pattern *_duration_seconds_bucket that represent latency breakdown across my pipeline. These metrics track iterations typically taking ~100ms, and I'm using le="+Inf" buckets in my queries. Currently displaying this data in Table, Bar Chart, and Histogram panels. Two issues specifically with the Histogram panel only:

X-axis bucket width: The histogram automatically sets intervals (currently 2.40ms). Is it possible to manually define these intervals (e.g., 0.5ms) through dashboard variables or panel settings? Y-axis decimal issue: The y-axis shows count values with decimals (0.5, 1.5) which doesn't make sense for count data. When I set decimals=0 in panel options, it causes duplicate labels on the axis (2-2, 3-3). How can I properly display whole numbers without this duplication?

enter image description here

Thx

3
  • Hmm, multiple lines with same legend value seems like a bug to me. Was able to reproduce with Histogram panel. Commented May 1 at 16:33
  • Regarding x-axis - not sure what you show. Normally (I think) it should correspond to your buckets (and I don't even know how you specified units for it). But I think your current resolution is around 0.4ms (assuming that between 0 and 2.4ms there are 6 columns) Commented May 1 at 16:35
  • grafana.com/docs/grafana/latest/fundamentals/intro-histograms and recent grafana.com/blog/2025/05/06/… Commented May 15 at 11:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.