Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to calculate requests per minute using Istio Prometheus metrics?

I want to calculate requests per minute, aggregated by service name.

I'm using the following query but I'm not sure if it is correct.

sum(increase(istio_requests_total{destination_workload_namespace="falabella"}[1m])) by (destination_workload) 
like image 972
AngryPanda Avatar asked Sep 17 '25 05:09

AngryPanda


1 Answers

It looks correct. Another query would be:

60 * sum(rate(istio_requests_total{destination_workload_namespace="falabella"}[1m])) by (destination_workload)

As documented, they are equivalent: https://prometheus.io/docs/prometheus/latest/querying/functions/#increase

like image 147
Joel Avatar answered Sep 19 '25 23:09

Joel