SLA Targets and Reports
An SLA target is the availability you commit to, for example 99.9% per month, for a check, a server or a group. Xitoring tracks it against an error budget: the downtime you can still afford before the target is missed. You can see the status in the dashboard, send SLA reports by email with a PDF, and embed a live SLA badge on your website.
On the free plan and during the trial you can have 1 SLA target. Paid plans have no limit.
What counts toward the SLA
The SLA percentage is the share of the eligible time in the period when the scope was not down.
- Downtime is the time between a check's down incident and its recovery. Only check incidents count; server metric incidents, such as high CPU, don't.
- Server and group targets count as down while any check in them is down. When several checks are down at the same time, that time is counted once, not added up.
- Maintenance windows are excluded when Exclude maintenance windows is on (the default). Only maintenance schedules that include the check itself count. A check's downtime during its own maintenance is not counted. For a server or group target, time is removed from the eligible time only while all of its checks are in maintenance. See Maintenance Schedule.
- Business hours: when set, time outside them is excluded. By default every day is counted around the clock.
- Paused checks: paused time still counts as eligible time.
During a period that hasn't ended, the SLA percentage and Met or Breached are based on the part of the period that has passed. The error budget is computed for the full period. Both agree once the period has ended.
Why SLA can differ from uptime
Uptime percentages count all of the time. SLA leaves out maintenance windows and time outside business hours, so the two numbers can be different for the same check. This is expected.
Set an SLA target
You can set a target on:
- A check: in the check's settings.
- A server: in the server's Settings tab. It covers all checks of the server.
- A group: when you edit a server group, in the SLA target section. It covers all checks of the servers in the group and in its direct sub-groups.
Fill in the SLA target card and select Save SLA target:
| Field | What it does |
|---|---|
| Name | A name for reports, for example "API SLA" |
| Target (%) | Above 0 and up to 100, with at most 3 decimals, for example 99.9 |
| Window | The period the target applies to: Monthly, Quarterly or Rolling |
| Rolling days | For a rolling window, the number of days, from 1 to 365 |
| Timezone | The timezone used for month and quarter boundaries and business hours |
| Exclude maintenance windows | Leave out maintenance windows. On by default |
| Business hours | Choose Open 24x7, or add one or more time ranges per weekday. A day without hours is closed |
Each check, server or group can have one target. To remove it, select Remove SLA target. Reports that use it stop including it.
Inherited targets
A check without its own target uses the target of its server. A server without its own target uses its group's, then the parent group's. The card then shows Inherited from with the server or group it comes from. Select Override to give the check or server its own target.
Who can set targets
Anyone who can view a check, server or group can see its SLA. Teammates need write access to it and the SLA reports permission to create, change or remove a target. See Team Management.
SLA status in the dashboard
The SLA card on a check's page, a heartbeat's page and a server's Overview tab shows:
- The SLA percentage for the current period and the target.
- Met or Breached.
- How much of the error budget is left, for example "21m of 43m budget left".
- Which target it inherits from, if any.
Select View SLA report for the details.
SLA report
Go to Email Reports from the side menu and select SLA report. The report lists every SLA target with:
- The scope, target, actual SLA and Met or Breached.
- Downtime, budget used, budget remaining and Burn rate. A burn rate of 1 means the budget is being used at the pace that would use it up exactly by the end of the period; above 1, faster.
- Excluded maintenance and Excluded outside business hours.
- Show incidents: the incidents that were counted, with how much of each one counted.
You can change:
- Period: This month, Last month, This quarter, Last quarter or Custom. A custom range can't start in the future and spans at most 400 days.
- Exclude maintenance: Use target setting, On or Off.
- Ignore business hours: count all hours for this report.
- Timezone.
Select Download PDF to save the report as SLA Report.pdf.
SLA report emails
You can send SLA reports by email on a schedule, like uptime email reports.
- Go to Email Reports and create a new report.
- Set Report type to SLA.
- Choose the schedule: daily, weekly, monthly or quarterly.
- Choose the Timezone.
- Under SLA targets, select 1 to 50 targets.
- Turn on Attach PDF to attach the PDF report.
- Select the recipients and save.
Each email covers the previous full period: the previous day, week, month or quarter in the report's timezone. Reports are sent with the daily report run at 10:00 UTC, on the day the report is due in its timezone:
| Schedule | Due on |
|---|---|
| Daily | Every day |
| Weekly | Monday |
| Monthly | The 1st of the month |
| Quarterly | 1 January, 1 April, 1 July and 1 October |
The subject shows the result, for example SLA report …: all 3 targets met (…), or [SLA breached] …: 1 of 3 targets missed (…) when a target was missed.
SLA report emails count toward your email report limit; the free plan and the trial include 1 email report. A target whose check, server or group was deleted is left out of the email. If all of a report's targets are deleted, the report stops being sent.
SLA badge
An SLA badge is an SVG image you can embed on your website. It shows SLA and the current SLA with the target, for example 99.95% · target 99.9%, for the target's current period. Its colour is:
- Green: the target is met and more than 25% of the error budget is left.
- Amber: the target is met and 25% or less of the budget is left.
- Red: the target is missed.
To create a badge for a check with its own SLA target:
- Open the check's page and select the SLA badge embed button.
- Select Enable SLA badge.
- Copy the snippet, for example
<img src="https://.../sla/badge/<token>.svg" alt="SLA">.
Anyone with the link can see the badge until you select Revoke. A revoked badge, or one whose check was deleted, stops loading. The image is cached for up to 5 minutes.
API
Authenticate with an API key.
| Request | What it does |
|---|---|
GET /api/v2/sla-targets | List SLA targets |
POST /api/v2/sla-targets | Create a target: scope_type (check, server, group), scope_id, name, target, window (monthly, quarterly, rolling), rolling_days, timezone, business_hours, exclude_maintenance |
GET, PUT, DELETE /api/v2/sla-targets/{id} | Get, change or delete a target |
POST /api/v2/sla-targets/{id}/badge | Create the SLA badge and return its URL |
DELETE /api/v2/sla-targets/{id}/badge | Revoke the badge |
GET /api/v2/sla/report | The SLA report. Filter by scope and id, or target_ids[]. Set window (this_month, last_month, this_quarter, last_quarter, rolling with rolling_days, custom with from and to), timezone, exclude_maintenance and use_business_hours. Add pdf=1 for the PDF |
GET /api/v2/check/{id}/sla | The SLA of a check, including an inherited target |
GET /api/v2/servers/{id}/sla | The SLA of a server, including an inherited target |
business_hours is an object keyed by weekday, with a list of [start, end] times in HH:MM for each day:
{
"mon": [["09:00", "17:00"]],
"tue": [["09:00", "12:00"], ["13:00", "17:00"]]
}
From an AI assistant
The MCP server has list_sla_targets and get_sla_report. The report includes a pdf_url, which needs your API key to open.