observability-manage-slos
Original:🇺🇸 English
Translated
Create and manage SLOs in Elastic Observability using the Kibana API. Use when defining SLIs, setting error budgets, or managing SLO lifecycle.
6installs
Sourceelastic/agent-skills
Added on
NPX Install
npx skill4agent add elastic/agent-skills observability-manage-slosTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Service-Level Objectives (SLOs)
Create and manage SLOs in Elastic Observability. SLOs track service performance against measurable targets using
service-level indicators (SLIs) computed from Elasticsearch data.
Authentication
SLO operations go through the Kibana API. Authenticate with either an API key or basic auth:
bash
# API key
curl -H "Authorization: ApiKey <base64-encoded-key>" -H "kbn-xsrf: true" <KIBANA_URL>/api/observability/slos
# Basic auth
curl -u "$KIBANA_USER:$KIBANA_PASSWORD" -H "kbn-xsrf: true" <KIBANA_URL>/api/observability/slosFor non-default spaces, prefix the path: .
/s/<space_id>/api/observability/slosInclude on all POST, PUT, and DELETE requests.
kbn-xsrf: trueSLI Types
| Type | API value | Use case |
|---|---|---|
| Custom KQL | | Raw logs — good/total using KQL queries |
| Custom metric | | Metric fields — equations with aggregations |
| Timeslice metric | | Metric fields — per-slice threshold check |
| Histogram metric | | Histogram fields — range/value_count |
| APM latency | | APM — latency threshold |
| APM availability | | APM — success rate |
| Synthetics availability | | Synthetics monitors — uptime percentage |
Guidelines
- is a decimal between 0 and 1 (for example
objective.targetfor 99.5%).0.995 - Timeslice metric indicators require .
budgetingMethod: "timeslices" - Updating an SLO resets the underlying transform — historical data is recomputed.
- The cluster needs nodes with both and
transformroles.ingest - Use when an SLO is stuck or after index mapping changes.
POST .../slos/{id}/_reset - Group-by SLOs create one instance per unique value — avoid high-cardinality fields.
- Synthetics SLOs are auto-grouped by monitor and location; do not set manually.
groupBy - Burn rate alert rules are not auto-created using the API — set them up separately.