Skip to content

SLAs and service credits

Track the availability you promise customers each month or quarter, exclude maintenance, work out service credits, and share a report for every period.

SLAs in brief

A service level agreement (SLA) is what you promise a customer, usually in a contract: “99.9% availability each month, or a 10% service credit”. In VitalRix an SLA is measured on a saved SLI for each calendar period, shows how close you are to missing it, warns you before you do, works out the service credit owed, and keeps a report for every period that you can share.

An SLA is not the same as an SLO. An SLO is an internal target on a rolling window, usually stricter than the SLA, so the team has room to react before a customer promise is broken. Both can be built on the same SLI.

Create an SLA

  1. Save the SLI it is measured on

    An SLA needs a saved SLI (see create an SLI). From an SLI's page, + SLA opens the form with it chosen.

  2. Describe the agreement

    Go to Reliability › SLAs, New SLA. Enter a name, the Customer it is promised to (a customer name, a contract, or “All customers”), and optionally a description and an application.

  3. Set the target and period

    Enter the Target (%), for example 99.9, and the Period: Monthly or Quarterly. The form shows the downtime the target allows per period, about 43 minutes a month at 99.9%. At risk within (default 0.05 points) sets how close to the target the SLA turns At risk.

  4. Add service credits

    Each credit level says what is owed when a period ends below it, for example below 99.9%: 10%, below 99%: 25%, below 95%: 50%. The largest matching credit applies. Credits sit at or below the target. Leave none to track and report without credits.

  5. Choose who is alerted

    With Alert when at risk or missed on (the default), an At risk warning fires when compliance comes within the margin, and a critical Missed alert fires once it falls under the target. Pick channels; channels that receive every alert are always told.

How compliance is measured

  • Calendar periods in UTC: a month, or a quarter starting in January, April, July or October. Each period starts with a clean slate.
  • Compliance = good events / (all events − excluded events), over the period so far. It is re-evaluated every few minutes.
  • States: On track (at or above target + margin), At risk (within the margin), Missed (under the target), No data (no events yet this period).
  • Error budget: the bad events the target allows for the events counted so far (0.1% of them at 99.9%), and how much of that the bad events used. The page also gives the target as minutes of full downtime for the whole period, for reference.
Downtime a target allows
TargetPer 30-day monthPer 91-day quarter
99%7 h 12 min21 h 50 min
99.5%3 h 36 min10 h 55 min
99.9%43 min2 h 11 min
99.95%22 min1 h 6 min
99.99%4 min13 min

Excluded time

Most contracts leave out announced maintenance. On the SLA page, Exclude time takes a start, an end (up to 31 days) and a reason. Events in excluded time count neither as good nor as bad, and the SLA is re-evaluated straight away. Exclusions show on the period's report.

Reports

Every period has a report: the target and what was delivered, met or missed, events counted and excluded, the downtime allowed and used, the service credit, the excluded time and the alerts raised. Open it from Report on the SLA page or from the Periods table. Print or save as PDF gives a clean page for the customer; CSV exports the figures for billing systems. A running period's report is marked provisional.

API

SLA endpoints
RequestDoes
GET /api/v1/slasList SLAs (filter by state, application, search on name and customer).
POST /api/v1/slasCreate: name, customer, sliId, targetPercent, period (monthly | quarterly), credits, atRiskMarginPercent, alerting.
GET /api/v1/slas/:idThe SLA with this period's status, its exclusions and the last 12 periods.
POST /api/v1/slas/:id/exclusionsExclude time: startsAt, endsAt, reason.
GET /api/v1/slas/:id/reports/:periodStartOne period's report, by its first day (YYYY-MM-01).

Plans and permissions

SLAs count against the Incidents & status pages plan: 1 on Free, 25 on Pro, 500 on Enterprise (see plans). Viewing SLAs and reports needs slo.read (all roles); creating, editing, excluding time and deleting needs slo.manage.

Something unclear or missing? Open VitalRix and use the in-app setup guides, or read Troubleshooting.