slo-sli-definition

Defines SLO targets and SLI measurements with PromQL queries and error budgets.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill slo-sli-definition-snoodleboot-io
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: slo-sli-definition
Source: https://github.com/snoodleboot-io/discrecontinual_equations/tree/main/.claude/skills/slo-sli-definition
Command: npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill slo-sli-definition-snoodleboot-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams struggle to translate vague reliability promises into measurable targets, leading to unclear alerting, misused downtime allowances, and misaligned expectations between engineering and business stakeholders. ## Core Features & Use Cases - SLO Definition Guidance: Explains availability, latency, and error rate SLOs with concrete targets like 99.9% uptime or p95 latency under 200ms. - SLI Measurement with PromQL: Provides ready-to-use Prometheus queries for availability, latency histograms, and error rate ratios. - Error Budget Calculation: Converts SLO percentages into monthly downtime budgets (e.g., 99.9% equals 43 minutes per month) with spending guidance. - Use Case: A platform team launching a SaaS product uses this Skill to set a 99.9% availability SLO, write the corresponding PromQL SLI queries, and establish an error budget policy that pauses deployments when the budget drops below 25%. ## Quick Start Ask the assistant to define an availability SLO with SLI PromQL queries and a monthly error budget for your service.

Frequently Asked Questions about slo-sli-definition

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define an SLO for my service?▼

Start by choosing a target like 99.9% availability, meaning the service succeeds 99.9% of the time. Calculate the SLI as successful requests divided by total requests, then derive the monthly error budget from the gap between 100% and your target.

What is the difference between SLO and SLI?▼

The SLO is the promised target, such as 99.9% availability, while the SLI is the actual measured value, such as 99.95%. The SLI tells you whether you are meeting the SLO commitment.

How do I measure latency SLI with Prometheus?▼

Use histogram_quantile with the rate of your request duration bucket metric, for example histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[1h])). This returns the p95 latency to compare against your target.

How much downtime does 99.9% availability allow per month?▼

A 99.9% SLO allows 0.1% of the month as downtime, which equals about 2,592 seconds or 43 minutes. Higher targets shrink this: 99.99% allows roughly 4 minutes per month.

What SLO target should I choose for my industry?▼

Internal tools typically use 99.0%, SaaS platforms 99.9%, financial systems 99.99%, and safety-critical infrastructure 99.999%. Choose based on user impact and the infrastructure cost of higher redundancy.

What should teams do when the error budget runs low?▼

When the budget drops below roughly 25%, stop deployments, postpone experiments, and focus on stability work. This prevents exhausting the allowance and breaching the SLO before the month ends.