Index of every page on this site: llms.txt
All skills
paulip114 avatar

/sre-slos-and-error-budgets

@3f0545a
Run it yourself

Use when defining, reviewing or refining SLIs and SLOs, writing or applying an error budget policy (release freezes, reliability prioritization, escalation), or quantifying incidents and projects in error-budget terms. Based on Google SRE practice.

Use this Skill: https://skilld.dev/gh/paulip114/sre-practice-skills/sre-slos-and-error-budgets

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencessli-menu.md

≈623 tokens on demand. Your agent reads this file only when SKILL.md points to it.

SLI menu by component type

Pick from here, then write each as good events / valid events.

Request-driven (APIs, web frontends, RPC services)

SLI Good event Notes
Availability Request got a successful response (e.g. not 5xx; decide explicitly how to treat 4xx, 429, timeouts) Exclude requests that are invalid by design, not ones that failed
Latency Request completed faster than threshold T Use 2+ thresholds (e.g. p90-ish and p99-ish) to cover the tail
Quality Response served without degradation Only needed if the service degrades gracefully (fallback content, partial results)

Pipeline (batch jobs, streaming processors, ETL)

SLI Good event Notes
Freshness Data read/served was updated within threshold T Best counted at read time, weighted by how often users look at it
Correctness Output record had the correct value Measure with known-answer test inputs or an independent (slower) checker on a sample
Coverage Batch: job processed ≥ expected volume. Streaming: record processed within window Can miss records the pipeline never learned about

Storage

SLI Good event Notes
Durability Previously written record can be read back Watch out: users care about the data they want now, which may be a tiny slice of the total
Availability / latency As for request-driven, on read and write paths separately

Where to measure (closest to user = best fidelity, usually most cost)

  1. Application server logs/metrics — cheap; miss requests that never reach the server.
  2. Load balancer metrics — usually already exists; closer to the user.
  3. Black-box probers — catch network/edge failures; synthetic, limited coverage.
  4. Client-side instrumentation — truest picture; needs code and its own telemetry pipeline.

Start with whatever already exists; move closer to the user when you find gaps.

Prometheus-style examples

# Availability over 7d
sum(rate(http_requests_total{job="api",code!~"5.."}[7d]))
/
sum(rate(http_requests_total{job="api"}[7d]))

# Latency SLI: fraction of requests under 450ms (needs a histogram bucket at 0.45)
sum(rate(http_request_duration_seconds_bucket{job="api",le="0.45"}[7d]))
/
sum(rate(http_request_duration_seconds_count{job="api"}[7d]))

Counting slow requests directly is more accurate than reading them off histogram buckets; make sure bucket boundaries match your thresholds.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill is a set of instructional guides and templates for Site Reliability Engineering (SRE) practices, specifically focused on Service Level Objectives (SLOs) and Error Budgets. It contains no executable code or dangerous instructions and refers only to official documentation from a trusted source.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 3f0545a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated last month

README badge

README badge for paulip114/sre-practice-skills/sre-slos-and-error-budgets