'Prometheus query help for calculating aggregate request per second
I need a Prometheus query that can calculate the single result request/sec count over a custom time frame. The container is being scraped every 5 second.
The time frame starts at UTC Time X and I want to calculate it for requests received during the next t minutes ending at time Y.
The metrics that has the data looks like this:
api_http_requests_total{endpoint="/rust",method="GET",status="200"} 4470385
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
