cx-slos
coralogix/cx-cli
Manage Coralogix SLO definitions—list, inspect health, and create/update/delete objectives.
What is cx-slos?
Manage Service Level Objectives (SLOs) in Coralogix via CLI. List and inspect SLO definitions, check whether targets and error budgets are healthy, and create, update, or delete SLOs from JSON. Use this when monitoring service reliability targets or triaging SLO breaches.
- List all SLO definitions and filter by profile
- Retrieve and inspect individual SLO details including target percentage and time frame
- Create new SLOs from JSON templates with validation
- Update existing SLO definitions and track affected alert IDs
- Delete SLOs and review downstream alert impacts
- Compare SLO attainment against targets to identify error budget burn
How to install cx-slos
npx skills add https://github.com/coralogix/cx-cli --skill cx-slos- Coralogix account with SLO management permissions
- cx-cli installed and authenticated with valid profile(s)
How to use cx-slos
- 1.Run `cx slos list -o json` to view all SLO definitions
- 2.Run `cx slos get <slo-id> -o json` to inspect a specific SLO's full details
- 3.Compare the live attainment percentage against `targetThresholdPercentage` to assess health
- 4.To create: template from an existing SLO with `cx slos get <id> -o json > slo.json`, edit the JSON, then run `cx slos create --from-file slo.json --yes`
- 5.To update: modify the JSON and run `cx slos update --from-file slo.json --yes`, then review the returned `effectedSloAlertIds`
- 6.To delete: run `cx slos delete <slo-id> --yes` and verify no critical alerts are silenced
Use cases
- Check whether a 99.9% SLO is breaching by comparing live attainment to target threshold
- Create a new window-based SLO for a 7-day rolling period on APM data
- Template an existing SLO definition, modify the target percentage, and push the update
- Fan out SLO queries across multiple environments using multi-profile mode
- Identify which alerts will be disabled before deleting an SLO
- SRE and reliability engineers monitoring service objectives
- DevOps teams managing SLO definitions across environments
- On-call engineers triaging SLO breaches and error budget burn
- Platform teams enforcing reliability standards
cx-slos FAQ
Request-based SLOs measure the fraction of good events (e.g., successful requests). Window-based SLOs measure the fraction of good time windows (e.g., minutes where the service was healthy). Choose based on whether you want to track individual request success or overall service availability windows.
Compare the live attainment percentage against the `targetThresholdPercentage`. If attainment is below the target, the SLO is breaching. If it is close to the target, the error budget is nearly exhausted and needs attention before a breach occurs.
Write operations require `--yes` in non-interactive and agent mode to prevent accidental modifications. This ensures intentional changes in automated workflows.
The `update` and `delete` commands return `effectedSloAlertIds` listing all alerts tied to that SLO. Deleting or significantly changing an SLO can disable or modify its alerts, so always review this list before confirming.
Use the `-p <profile>` flag (repeatable) to fan out commands across profiles. For example, `cx slos list -p prod -p staging -o json` will query both environments.
Full instructions (SKILL.md)
Source of truth, from coralogix/cx-cli.
name: cx-slos
description: >
Manage Coralogix SLO (Service Level Objective) definitions with the cx slos
CLI — list and inspect SLOs, check whether targets and error budgets are
healthy, and create, update, or delete SLO definitions from JSON. Use when the
user asks to "list SLOs", "check SLO status", "is an SLO breaching", "error
budget", "create an SLO", "update an SLO", "delete an SLO", or "service level
objective".
metadata:
version: "0.1.0"
SLO Management Skill
An SLO (Service Level Objective) defines a reliability target for a service — e.g. "99.9% of requests succeed over 28 days". Use this skill to inspect SLO definitions, judge whether they are healthy, and manage their lifecycle.
CLI Commands
| Command | Purpose |
|---|---|
cx slos list | List all SLO definitions |
cx slos get <id> | Get a single SLO by ID |
cx slos create --from-file <path> | Create an SLO from a JSON definition [requires --yes] |
cx slos update --from-file <path> | Replace an SLO definition from JSON [requires --yes] |
cx slos delete <id> | Delete an SLO [requires --yes] |
- All commands support
-o jsonfor structured output and-p <profile>(repeatable) for multi-profile fan-out. create/updateread from--from-file <path>, or-for stdin (the default).create,update, anddeleteare write operations and require--yesin non-interactive / agent mode.
SLO Definition
The fields surfaced on every SLO:
| Field | Meaning |
|---|---|
name | Human-readable SLO name |
description | Optional description |
targetThresholdPercentage | The objective, e.g. 99.9 |
sloType | SLO_TYPE_REQUEST (request-based) or SLO_TYPE_WINDOW (window-based) |
sloTimeFrame | Rolling window, e.g. SLO_TIME_FRAME_7_DAYS, SLO_TIME_FRAME_28_DAYS |
productType | The pillar the SLO is computed from, e.g. SLO_PRODUCT_TYPE_APM |
Monitoring SLO Health
# All SLOs with their target and window
cx slos list -o json | jq '[.[] | {name, targetThresholdPercentage, sloType, sloTimeFrame}]'
# Inspect a single SLO in full
cx slos get <slo-id> -o json
Compare the live attainment against targetThresholdPercentage to judge whether
the SLO is healthy or burning error budget. A request-based SLO measures the
fraction of good events; a window-based SLO measures the fraction of good time
windows. After triage, pivot to the cx-telemetry-querying skill to find the root
cause of a breach in logs, spans, or metrics.
Creating and Updating SLOs
The safest way to author an SLO is to round-trip an existing one — template from the
exact field shape that get returns rather than hand-writing JSON:
# Template from an existing SLO, edit, then create
cx slos get <existing-slo-id> -o json > slo.json
# Edit slo.json: change name, targetThresholdPercentage, sloType, sloTimeFrame, etc.
cx slos create --from-file slo.json --yes
# Replace an existing definition
cx slos update --from-file slo.json --yes
update and delete report the alert IDs they affect (effectedSloAlertIds), so
review that list — changing or removing an SLO can disable the alerts attached to
it.
Key Principles
- Check attainment vs. target, not just existence — an SLO at 99.91% against a 99.9% target has almost no error budget left and needs attention before it breaches.
- Round-trip definitions — template create/update payloads from
cx slos getrather than hand-writing JSON, to keep the exact field shape the API expects. create/update/deleteneed--yesin agent / non-interactive mode.- Watch affected alerts —
update/deletereturneffectedSloAlertIds; deleting an SLO can silence its alerts. - Multi-profile fan-out with
-p <profile>(repeatable) to compare SLOs across environments.
Related Skills
cx-alerts— the alert definitions that fire when an SLO's error budget burns.cx-telemetry-querying— investigate the logs, spans, and metrics behind an SLO breach.cx-cases— triage the cases that group the alert events raised against a service.
Related skills
More from coralogix/cx-cli and the wider catalog.

cx-telemetry-querying
Query telemetry data across logs, metrics, traces, RUM, and APM to investigate issues and debug problems.

coralogix-docs
Search and read official Coralogix platform documentation with cx docs search and fetch.

cx-ai-center
Observe, evaluate, and guard GenAI/LLM applications—analyze behavior, manage policies, and track costs.

cx-alerts
Manage Coralogix alert definitions—create, list, enable, disable, and configure alerts via CLI.

ab-test-setup
Design and run statistically valid A/B tests and build a continuous experimentation program.

ab-testing
Design and run statistically valid A/B tests and build a continuous experimentation program.