Hello!

Can you help me?

I have a summary metric
http_server_requests_seconds{instance="", quantile="", uri=""}
http_server_requests_seconds_count{instance="", uri=""}
http_server_requests_seconds_sum{instance="", uri=""}

and I'm trying to figure out how to calculate the 95 quantile across all 
instances.
I know that there is no way to aggregate the quantile of Summary, but I 
want to try to implement the formula:

(quantile95_instance_1 * count_instance_1 + ... + quantile95_instance_N * 
count_instance_N ) / (count_instance_1 + ... + count_instance_N)

However, when I multiply http_server_requests_seconds * 
http_server_requests_seconds_count, there is no data in the response

Do I understand correctly that:
1. In the Summary type, mathematical operations can only be applied to the 
_sum and _count metrics?
2. This is because the _sum and _count metrics are consistent in time with 
each other, while the metric with quantile is not?

3. And if point 1 is correct, is it possible mathematically or in some 
other way for this metric to calculate the 95 quantile across all instances.


-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/450d1f38-f7b4-4ca3-892b-572f36f86f1f%40googlegroups.com.

Reply via email to