I have a use case where I want to set the alerts from grafana on hourly basis. In this hourly alert I want to get the request count for each API in last 1 hour and collect them and sent along with the alert. I tried different combination of using
- sum -
sum(increase(http_server_requests_seconds_count[1h]))
- increase -
increase(http_server_requests_seconds_count[1h])
- sum_over_time -
sum_over_time(http_server_requests_seconds_count[1h])
- count_over_time -
count_over_time(http_server_requests_seconds_count[1h])
While I am validating the result from request count it is not adding up. Any suggestions? Thanks in advance.