CertGrid CertGrid
Hands-on Lab·Kubernetes and Cloud Native Associate

SLOs, SLIs and Error Budgets

An SLO is not a document. It is a recording rule, a target and a subtraction. Build an availability SLI for your own API server, name it, and turn it into a burn rate you can alert on.

Observability Guide 41 of 46 Intermediate

Recording rules and the /api/v1/query endpoint are stable Prometheus. The PrometheusRule CRD comes from the Prometheus Operator, which runs in this cluster's monitoring namespace.

The Prometheus stack from the observability track is already running in the monitoring namespace, and the queries here go through a Pod in that namespace.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE01192.168.0.176Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

This guide includes

Use this when an SLO has to become something the system can answer rather than a number in a document. This matters because an availability target is only useful once it is a named query with an error budget you can watch shrink.

Before you start

  1. An SLI is a ratio you have to choose

  2. A recording rule gives it a name

  3. The error budget is the distance to the target

  4. The third pillar you do not have

Official sources