Nuhman Paramban
Nuhman Paramban

Reputation: 71

adding static time interval panel in Grafana Prometheus

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

Answers (1)

Alin Sînpălean
Alin Sînpălean

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

Related Questions