Reputation: 71
I am trying to add a static panel to show total number of request for the current year in grafana prometheus
I am using sum(http_server_requests_seconds_count{}) for the current interval selection in grafana
Is any way i can do that for current year
Upvotes: 0
Views: 322
Reputation: 10084
Use increase(http_server_requests_seconds_count[1y])
. But it's not going to be fast. Or easy on Prometheus. Also, make sure you're using it as instant query (the Instant switch below the query textarea) or it's going to be even worse.
Upvotes: 1