It sounds like you need a histogram: https://prometheus.io/docs/concepts/metric_types/#histogram https://prometheus.io/docs/practices/histograms/
What this means is you generate separate buckets for different latencies (maybe: <0.1s, <0.2s, <0.5s, <1s, <2s, other) and increment the counts for each message. Then answering questions like "out of all the events, what proportion took more than 1 second?" is straightforward. -- 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/0b04cb8d-3078-4ca9-a6b6-fe870277b8ea%40googlegroups.com.

