# How to make Grafana/Prometheus summarize values by max or peak when zooming out?

**URL:** <https://community.grafana.com/t/how-to-make-grafana-prometheus-summarize-values-by-max-or-peak-when-zooming-out/52506>\
**Category:** Prometheus\
**Created:** [August 27, 2021, 8:55am UTC](https://community.grafana.com/t/how-to-make-grafana-prometheus-summarize-values-by-max-or-peak-when-zooming-out/52506 "2021-08-27T08:55:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tobia](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/tobia/32/18009_2.png) [@tobia](https://community.grafana.com/u/tobia)\
**Post date:** [August 27, 2021, 8:55am UTC](https://community.grafana.com/t/how-to-make-grafana-prometheus-summarize-values-by-max-or-peak-when-zooming-out/52506/1 "2021-08-27T08:55:05Z")

</div>

Hello

I have a time series that plots a single measure from Prometheus. The query is basically `measure_name`.

My issue is that whenever the chart resolution goes down a step, as I increase the time interval, I lose all the peaks.

Here is the chart spanning 20 hours:

![grafana_20h](https://us1.discourse-cdn.com/grafana/original/3X/b/5/b5081301202734660d36aa885c3e252e908b0234.png)

Here is the same chart spanning 22 hours:

![grafana_22h](https://us1.discourse-cdn.com/grafana/original/3X/6/2/621d86c9c7ddbb389e06a5b7fed6de0dd2db6558.png)

As you can see, the chart becomes useless.

How can I make Prometheus return the maximum or **peak** value for each time step?

Right now it’s not even returning the average, maybe it takes the spot value at the beginning of the time interval, or something like that.

---

_[View the full topic](https://community.grafana.com/t/how-to-make-grafana-prometheus-summarize-values-by-max-or-peak-when-zooming-out/52506)._
