# Histogram Visualization from Prometheus data?

**URL:** https://discuss.elastic.co/t/histogram-visualization-from-prometheus-data/294457
**Category:** Kibana
**Created:** [January 14, 2022, 9:39pm UTC](https://discuss.elastic.co/t/histogram-visualization-from-prometheus-data/294457 "2022-01-14T21:39:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DarkMagus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darkmagus/32/100349_2.png) [@DarkMagus](https://discuss.elastic.co/u/DarkMagus)
#### Post date: [January 14, 2022, 9:39pm UTC](https://discuss.elastic.co/t/histogram-visualization-from-prometheus-data/294457/1 "2022-01-14T21:39:14Z")

</div>

I have some data that's being exported from Prometheus as a histogram object. The data itself is how long a particular job takes to process, so the buckets are in 30 second intervals. I'm getting data from my containers that looks like this (as expected the histogram has both \_count & \_values arrays).

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/3/731dae9641e902068c953a5e9b0d346ebe64e3ca.png)

I'm trying to visualize this as a vertical bar chart (histogram) - here's how I have it set up:

- Y-Axis - **Sum** of \_counts field
- X-Axis - Histogram aggregation, on the \_values field.

Screenshot:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/5/25c9dd87fb3331e8d6c533abb760cde32202130d.png)

However, the results aren't what I'm expecting. Based on the sample data in the screenshot there are lots of buckets that have 0 values, and only a few buckets that have actual counts in them. So I'm not expecting to see this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0be51035b8a6d91cd494ae5967fd4bfa6c642f95.png)

Any idea on what I'm doing wrong? I'm only minimally familiar with Kibana. Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 11, 2022, 9:40pm UTC](https://discuss.elastic.co/t/histogram-visualization-from-prometheus-data/294457/2 "2022-02-11T21:40:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
