> Note - I have no bucket metrics for histogram.
What you say doesn't make sense to me. What you showed *is* a histogram,
and the metrics *prometheus_rule_evaluation_duration_seconds* *are* the
buckets.
Therefore, if those are the metrics you have, then the 50th percentile is
simply
prometheus_rule_evaluation_duration_seconds{quantile="0.5"}
and the 90th percentile is simply
prometheus_rule_evaluation_duration_seconds{quantile="0.9"}
There is no need to "calculate" the p50/p90/p99 latencies because you
already have them.
On Monday, 20 March 2023 at 08:47:46 UTC Prashant Singh wrote:
> Hi ,
>
> Need to be know what is promql for calculate p50th ,p90th , and p99th
> latency or perctile for bleow metrics
>
> Note - I have no bucket metrics for histogram.
>
>
> # HELP prometheus_rule_evaluation_duration_seconds The duration for a rule
> to execute.
> # TYPE prometheus_rule_evaluation_duration_seconds summary
> prometheus_rule_evaluation_duration_seconds{quantile="0.5"} 6.4853e-05
> prometheus_rule_evaluation_duration_seconds{quantile="0.9"} 0.00010102
> prometheus_rule_evaluation_duration_seconds{quantile="0.99"} 0.000177367
> prometheus_rule_evaluation_duration_seconds_sum 1.623860968846092e+06
> prometheus_rule_evaluation_duration_seconds_count 1.112293682e+09
>
> Thanks
> Prashant
> Thanks,
> Prashant
>
--
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/32fbb9cb-20d1-4ecd-b539-284df5e9dddbn%40googlegroups.com.