I have some counter in Prometheus (Victoria metrics).
In Grafana I'm displaying it like this:
sum by (model_id) (increase(requests[$__interval]))
I would like to add variable in grafana, called downsample. Where I could pick 1h
, or 6h
or something. I want to see my data aggregated based on this time. Like if I say 1h
, I would like my graph to have 1 point per hour with total number of requests per model during this hour.
The $__interval
seems to change by grafana based on my time window. But If I try to put my 1h
I get something completely untrue.