Interview Prep/SRE & Reliability/Prometheus SLIs & Recording Rules

Your latency SLI using `le="0.3"` returns an empty result, but the histogram exists.

IntermediateTroubleshootingPrometheus SLIs & Recording Rules
Answer

Likely causes → 0.3 seconds is not a bucket boundary. The histogram may only have 0.25 and 0.5 buckets, or the le value is formatted differently ("0.30", or "1.0" vs "1" for whole numbers in some client libraries).

Diagnose →

count by (le) (http_request_duration_seconds_bucket{job="checkout"})

Fix → Either add a 0.3 bucket in the instrumentation and redeploy, or align the SLO threshold with an existing bucket (for example 250 ms). Match the exact le string.

Prevent → Define histogram buckets together with SLO thresholds; document the bucket layout in the SLO document. Native histograms in recent Prometheus versions remove most of this pain.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Prometheus SLIs & Recording Rules