I have this query
quantile_over_time(0.90,
replication_read_duration_seconds{job="heartbeat-read"}[5m]) < .005 != bool
1
I am trying to measure the times when my duration is greater than 5ms and
then report a percentage. Something like: Over the last 5 minutes, 99.9% of
requests were below 5ms.
My thought was to create a recording rule with the above query, and then
average_over_time against my recording rule. The issue i have, is that the
'bool 1' is only storing a 1 when this condition is true. It doesnt store a
0 when the condition is false. So when I take the average of the recording
rule metric, the average is always 1.
Am I approaching this incorrectly?
Chris
--
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/e0422d3d-e8cc-4ebc-807d-3261a31ac559%40googlegroups.com.