stefanprodan / istio-hpa

Configure horizontal pod autoscaling with Istio metrics and Prometheus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong result with the example query

arik-porat opened this issue · comments

I'm getting better results with this query to undestand the number of request per second a pod is doing:
round(
sum(
irate(istio_requests_total{reporter="destination",destination_workload_namespace="namespace",destination_workload="pod-name"}[1m])
),
0.001)
/
count(
count(
container_memory_usage_bytes{
namespace="namespace",
pod_name=~"pod-name.*"
}
) by (pod_name)
)

The first part I've taken from the istio workload dashboard itself.

With the example query I get double the size of the requests