Loki request latency critical
The {{ $labels.job }} {{ $labels.route }} is experiencing {{ printf "%.2f" $value }}s 99th percentile latency
>>>
(
histogram_quantile
(0.99,
sum
(
rate
(
{route!~"(?i).*tail.*"}[5m])) by (le))) > 1
The rule computes the 99th‑percentile request latency for each Loki job/route (excluding routes containing “tail”) by taking the rate of the loki_request_duration_seconds_bucket histogram over the past 5 minutes. The alert fires when this latency exceeds 1 second.
Get Alert✕
Download
Copy to Clipboard