I need to show, in Grafana, a panel with the number of requests in the period of time selected in the upper right corner.
For this I need to solve 2 issues here, I will ask the prometheus question here and the Grafana question in another link.
If I have a Counter http_requests_total, How can I build a query to get an integer with the total number of requests during a period of time (for example:24hs)?
increase()function on a time series with integer values. It may also miss some values on slowly increasing time series. Both issues are documented at github.com/prometheus/prometheus/issues/3746 . If you need accurate integer values fromincrease()function, then take a look at MetricsQL. - valyala