Manage SLOs¶
All created SLO tasks can be viewed under Monitors > SLOs. The list displays real-time metrics such as associated monitors, targets, downtime, compliance rate, and error budget. It also supports enabling, disabling, editing, viewing events, and exporting dashboards.
List Fields¶
Field |
Description |
---|---|
Monitor | The number of monitors associated with the SLI, which are the metrics measuring service performance. |
Target | The target percentage for service availability set when creating the SLO task. |
Compliance Rate (7 days) | The percentage of time the system was anomaly-free within the given assessment period (Compliance Rate = Anomaly-Free Time / Assessment Period * 100%): |
Downtime (7 days) | The time the monitor was abnormal / used quota. |
Error Budget (7 days) | The remaining allowable fault time for the current SLO (assuming the target SLO is set to 95%, meaning there is a 5% fault tolerance rate, with the default period being the last 7 days, thus: Error Budget = 7 days * 5% = 21 minutes), displayed as: |
Operation Instructions¶
- Search: Filter by SLO name;
- Batch: Enable/Disable/Delete multiple SLOs;
- Single SLO task: Enable, Disable, Edit (except name/target/frequency), Delete;
- Delete: Supports deleting existing SLO tasks;
- View related events: One-click to view all unresolved events triggered by this SLO;
- Export to dashboard: Synchronize the SLO view to the dashboard.
Note
- Deleting an SLO will also delete its dashboard view;
- The time range of the SLO view in the dashboard defaults to match the dashboard, and the list defaults to display the compliance rate for the last 7 days.
Get SLO via DQL Expression¶
Reference the following query for anomaly time:
df_slo_cost
represents deducted minutes, and summing the values gives anomaly time. Replace df_slo_id
accordingly:
To query the SLO value for 7 days, the DQL expression is as follows:
eval((10080-A)/10080 *100, A="E::`slo`:(sum(`df_slo_cost`)) { `df_slo_id` = 'monitor_6bad2a76dd9b41d7894f21a76d44ae42'}")
Example:
In the image below, the anomaly time SLO value for the past 7 days of the SLO task is 80.496%
.
Go to Shortcut > Query Tool, select DQL Query, and enter the query statement for the 7-day SLO value. The query result matches the value in the image above.