
Hi,
I'm displaying in Grafana the outgoing data rate of a particular network interface, which is sampled every 2 minutes, and I configured the graph legend to display the maximum value of the metric in the current time range. My problem is that the displayed maximum value changes when I zoom in or out, even though the actual maximum remains the same.
The attached picture shows an example of this: on the left we can see a sharp peak that occurred at a particular time; on the right we see the same graph after I zoomed out, and the peak has disappeared because it was too short-lived (on the left we have a new pixel every minute, on the right we have one every 4 minutes). Now, if I display a graph of the last 24 hours, which will be similar to the one on the right, and I look for the max value in the legend, I won't see the correct value which is 49.27 Gbps because of the resolution of the graph; I'd like to have a way to display that value while also displaying the 24-hour graph.
I thought this was a Grafana issue, but Torkel Ödegaard, the developer of Grafana, insists that Prometheus uses some kind of aggregation when zooming out because otherwise Grafana would be overwhelmed by datapoints, and it is this aggregation that makes the maximum value disappear.
Is there a way to display the true maximum of a metric in any time range, short or long?