- What SLIs and SLOs measure and why they matter
- Common SLI types and sample formulas
- How to convert raw telemetry into useful SLIs with OpenTelemetry
- Where SLO evaluation should occur in your observability stack

| SLI category | What it measures | Typical user-focused question |
|---|---|---|
| Availability | Whether the service is up and responding | ”Is the site reachable?” |
| Latency | How quickly requests finish | ”How long do actions take?” |
| Errors | Frequency of failed requests | ”How often do users get errors?” |
| Throughput | Volume of handled requests | ”How much traffic do we serve?” |
| Saturation | Resource utilization and headroom | ”How close are resources to limits?” |

- Success rate SLI:
- Definition: Percentage of valid requests that are considered successful.
- Formula: (good events / valid events) × 100

- Latency compliance SLI:
- Definition: Fraction of requests finishing below a chosen latency threshold.
- Formula: (requests below latency threshold / total requests) × 100
When converting a fraction to a percentage, multiply by
× 100. If you see diagrams showing × 1000 in this context, that is incorrect for percentage conversion.
- Error rate SLI:
- Definition: How often requests fail.
- Formula: (failed requests / total requests) × 100
- Start with a user-centric goal — describe what a good user experience looks like.
- Select an SLI that quantifies that goal (for example, latency < 200 ms).
- Define an SLO: how often will the SLI meet that criterion over a window? (e.g., 99% of requests under 200 ms, measured over 30 days).
- Configure alerting for SLI trends and breaches so teams can act before SLA obligations are violated.
- Typical user-facing examples:
- Page load P95 < 250 ms
- Success rate > 99.5%
- Infrastructure metrics (e.g., CPU usage) are useful for diagnostics but do not always correlate directly with perceived user experience. SLIs should focus on outcomes users care about.
- Metrics: counters, gauges, histograms (e.g., request counts, latency histograms).
- Traces: span durations and status codes (useful for latency and success-rate calculations).
- Logs: can be parsed and converted into metrics for SLI computation.

- You can convert error counts observed in logs into metrics for SLI reporting.
- Use traces to derive precise latency (span duration) and success/failure indicators.

- Track latency measurements against an SLO threshold (for example, 200 ms).
- SLOs commonly allow occasional spikes as long as the overall compliance percentage meets the target (e.g., 99% over 30 days).

- Applications instrumented with OpenTelemetry SDKs generate telemetry (metrics, traces, logs).
- The OpenTelemetry Collector can receive, preprocess, aggregate, and transform telemetry; it can also convert traces or logs into metrics when appropriate.
- Data is exported (OTLP or other exporters) to your backend monitoring/SLO platform where SLO evaluation, aggregation over windows, visualization, and alerting occur.


| Component | Responsibility |
|---|---|
| Application / SDK | Generate accurate telemetry (instrument requests, spans, and events) |
| Collector (optional) | Route, transform, pre-aggregate, and convert logs/traces to metrics where helpful |
| Backend / Platform | Compute SLO compliance over windows, visualize SLOs, and trigger alerts |


Avoid aggressive sampling when generating SLIs. Dropping or heavily sampling requests can reduce SLI accuracy and mask real reliability problems. If sampling is necessary, document its effect on SLI accuracy and consider adjustments in the backend.
- SLIs measure user-facing behavior (latency, success rate, errors, throughput) and should be defined from the user’s perspective.
- SLOs are time-windowed targets applied to SLIs (e.g., 99% of requests under 200 ms over 30 days).
- OpenTelemetry standardizes and transports telemetry (metrics, traces, logs) to your backend — but SLO evaluation, rolling-window calculations, visualization, and alerting are responsibilities of your monitoring/SLO platform.
- Be cautious with sampling: it can undermine SLI accuracy if not managed carefully.
- OpenTelemetry Project: https://opentelemetry.io/
- SLO concepts and examples: https://landing.google.com/sre/sre-book/chapters/service-level-objectives/
- Practical SLI/SLO tooling: check your monitoring vendor docs for SLO evaluation and alerting workflows.