What would be the correct PromQL to find the mean latency of the downstream calls.
We are using the given promQL to find the p99 of the downstream service: histogram_quantile(0.99, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{name="circuitBreakerName"}[1m])) by (le))
.
The prometheus metrics which are exposed by application are : resilience4j_circuitbreaker_calls_seconds_count
, resilience4j_circuitbreaker_calls_seconds_sum
and resilience4j_circuitbreaker_calls_seconds_bucket
.
How to write the promQL to find the mean time using above metrics ?