Loading...
Loading...
Create and manage SLOs in Elastic Observability using the Kibana API. Use when defining SLIs, setting error budgets, or managing SLO lifecycle.
npx skill4agent add elastic/agent-skills observability-manage-slos# 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/slos/s/<space_id>/api/observability/sloskbn-xsrf: true| 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 |
objective.target0.995budgetingMethod: "timeslices"transformingestPOST .../slos/{id}/_resetgroupBy