Use this service level agreement template when a provider runs a service for you: hosting, a managed application, IT support or a cloud platform. It records which services are covered, the target each one must meet, how each target is measured and what happens when one is missed. Price, liability and termination usually sit in the main agreement the SLA attaches to.
SLI, SLO and SLA: three terms for three things
Google's site reliability engineering book separates the terms in a way that helps when you draft (Google SRE book, chapter 4):
- A service level indicator (SLI) is a measurement, such as the share of requests that succeed or the time a response takes.
- A service level objective (SLO) is a target for that measurement, such as "99.9% of minutes in the month available".
- A service level agreement (SLA) is the agreement that contains the targets and the consequences of meeting or missing them. The book's test: ask what happens if the target is missed. If nothing happens, you are looking at an SLO.
In this template, section 5 holds the targets, section 9 the measurements and reports, and section 10 the consequences. An SLA also differs from a statement of work. The statement of work covers a project that ends, such as building or migrating a system. The SLA covers the running service that follows it.
Who writes it and who signs
Large cloud providers publish a standard SLA for each service. With a smaller hosting, support or managed-service provider, negotiate it. The customer is best placed to draft section 2, the services it depends on and when it needs them. The provider is best placed to propose the targets in section 5, because it knows what its staffing and systems can meet. The people who sign the main agreement sign the SLA; the people who run the service day to day are named in section 11.
How to fill in each section
1, parties and term. Name both legal entities, the agreement the SLA forms part of and which document wins if they conflict. Set one time zone for every time in the document.
2, services covered. One row per service, with its environments and hours: "customer portal, production only, 24/7" is clear; "the website" is not. List what is out of scope as carefully: staging systems, third-party services the provider does not control, content changes and new features.
3, definitions. Define the words a dispute would turn on: available, downtime, maintenance, response, restore. NIST's work on cloud service metrics notes that providers publish many variants of an "availability percentage" and that they differ in details such as exception rules (NIST SP 500-307). Write your own definitions instead of relying on the word.
4, support hours and channels. Say which channel to use for each priority and when the clock starts. A critical incident reported by email at 18:00 on a Friday should not wait for Monday because nobody reads the inbox.
5, targets. For availability, state the target, the period, what is checked, how often, from where, when a minute counts as down and whose data is the record. U.S. federal rules for performance-based service contracts make the same demand: measurable performance standards and a method of assessing performance against them (FAR 37.601). For incidents, define each priority by its effect on the business and give an example from this service. Set a response target (a qualified person acknowledges the ticket and starts work) and a restore target (the service works again, by a fix or a workaround) for each priority. Add targets for backups and recovery: how often data is copied, how long copies are kept and how fast a full restore must be. The RTO and RPO guide explains how to set those two numbers per system. The SRE book advises percentiles rather than averages for response-time measures, because an average can hide the slowest requests.
6, maintenance. Set the notice period, the window, the monthly limit and whether maintenance counts as downtime. Maintenance with no limit is a gap in the availability target.
7, exclusions. Exclude what the provider cannot control, and nothing more. Every exclusion removes real outages from the reported figure.
8, customer responsibilities. List what the provider needs from you: current contacts, access, timely approvals. Targets that wait on a customer action pause while the provider waits, if it asked in writing.
9, reports. A monthly report with every period of downtime, every incident against its target and the credits due makes the SLA something both sides can check.
10, service credits. Read a large provider's SLA before you write this section. The AWS compute SLA (last updated May 2022) gives credits of 10%, 30% or 100% of the monthly EC2 bill for the affected region as region-level uptime falls through set bands below 99.99%. Credits are applied to future payments and do not entitle the customer to a refund; the customer must file a claim with request logs by the end of the second billing cycle after the incident; and, unless the agreement says otherwise, the credits are the customer's sole and exclusive remedy (AWS). Decide each of those points for your own SLA: automatic or claimed credits, the cap, the remedy and a right to leave after repeated misses.
11 and 12, escalation and review. Name three levels of contact on each side and when to escalate. Set a review date and record every amendment as a numbered version.
What an availability percentage allows
| Target | Downtime in a 30-day month | Downtime in a 365-day year |
|---|---|---|
| 99% | 7 hours 12 minutes | 3 days 15 hours 36 minutes |
| 99.5% | 3 hours 36 minutes | 1 day 19 hours 48 minutes |
| 99.9% | 43 minutes | 8 hours 46 minutes |
| 99.95% | 22 minutes | 4 hours 23 minutes |
| 99.99% | 4 minutes 19 seconds | 53 minutes |
Check the target against the restore times in section 5.2. If a priority 1 incident may take four hours to restore, one incident that uses that time misses a 99.9% monthly target more than five times over.
A worked example
A 60-person distribution company has a provider host its customer ordering portal and run the database behind it. The first draft says "99.9% uptime, 24/7 support". On review the parties write: availability is measured per calendar month by an external check of the login page and the order API every minute from two regions, and a minute counts as down when both regions fail. Scheduled maintenance is announced five business days ahead, runs on Sundays from 02:00 to 04:00, does not count as downtime and is capped at four hours a month. A priority 1 incident (no customer can place orders) has a 30-minute response and a four-hour restore target around the clock; both sides note that one such incident using the full four hours would miss the monthly availability target, and the credit table covers that case. A priority 3 incident (one report shows wrong totals) gets a response the next business day. Backups run hourly, are kept for 30 days and are restore-tested each quarter. Credits are 5% of the monthly fee below 99.9% and 15% below 99.5%, capped at 25%; three months below target in any six lets the company end the agreement for that service.
In March, a database failover takes 50 minutes on a Tuesday afternoon. The monthly report shows 99.89% availability (50 of 44,640 minutes), the provider applies a 5% credit to the April invoice, and the quarterly review adds a failover test to the schedule.
Common mistakes
- A percentage with no definition of downtime, measurement point or period.
- Response targets with no restore targets.
- Measuring at the provider's servers when users reach the service through other systems. The SRE book notes that the measure closest to the user is often the more relevant one.
- Exclusions broad enough to cover most real outages.
- Credits that depend on a claim nobody files in time.
- Targets the provider cannot staff. The SRE book's advice for SLOs applies here: start with a target you can meet and tighten it, rather than set one that has to be relaxed.
- No link to the monitoring itself. The observability guide explains how SLOs are measured and how to set the first one.
Keeping it current
Read each monthly report against the targets, not only the credits. Review the SLA at least once a year and whenever a service, system or provider changes. If a target is met every month by a wide margin, decide whether you are paying for headroom you do not need. If it is missed every month, the target, the staffing or the system has to change, and credits alone do not fix that. Keep each signed version with its date.
Related documents and reading
Alongside an SLA you will usually want a master services agreement, a statement of work for any setup project, and a security or data processing schedule. For a website, the website maintenance guide lists the recurring tasks and the clauses a maintenance agreement should cover. For support, the IT help desk guide explains how impact and urgency set a ticket's priority, which section 5.2 turns into targets.
Ask a lawyer to review sections 7 and 10, and how they interact with the liability and termination clauses of the main agreement.