Documentation menu
Error budgets
Error budgets tell a team whether it is focusing on the right things. A service level objective (SLO) says how reliable a service should be, for example 99.9% of requests answered within a second. The error budget is the room left: the 0.1% that may fail. While the budget lasts, the team can ship features; when it runs out, the team stabilises first.

Setting up
1. Connect a monitoring backend
Under Settings → Error budgets, add the system that holds your metrics:
2. Add a service
On the Error budgets page, open the service menu and choose Add service. Give it a name, a description and the data source (backend) it is measured in. A service can be linked to a team on the Teams page, so the team's reliability is scored over it.
3. Add SLOs
Select the service and press Add SLO, then choose the type:
- Metric based: you define the SLO here, with filters on your backend's metrics (see Methods).
- Synthetic monitoring: Agile Analytics probes URLs or a sitemap itself.
- Import from GCP or Import from AWS: you use an SLO that already exists in Google Cloud Monitoring or CloudWatch Application Signals. See Importing SLOs from Google Cloud or AWS.
- Cloudflare: you set a target on Cloudflare's traffic data. See SLOs on Cloudflare traffic.
A metric-based SLO has:
- Name, environment and goal, for example 99.5%.
- Step: the window over which the goal is measured, such as 1 hour, 24 hours or 7 days. Agile Analytics computes every SLO every 30 minutes for each step.
- Method: how good and bad events are told apart (see below).
SLOs can be disabled and enabled again without losing their history.

4. Link repositories
In Manage services, pick the repositories that deploy each service. A deployment that is followed within an hour by a fast-burn alert on that service counts as a failed change in the DORA metrics, and the time until the next deployment as its time to restore.

Methods
Good/bad ratio
The share of good events among valid events. Give two of three filters: good, bad and valid. Examples: successful responses over all responses (availability), acknowledged messages over all messages (queue coverage).
Distribution cut
The share of events below (or above) a threshold in a distribution metric, typically latency. Give the valid filter, the threshold bucket and whether a value is good below or above it. The threshold bucket refers to the buckets of the distribution metric in your backend; this sheet lists the bucket boundaries of Google Cloud Monitoring's default latency distribution.
Importing SLOs from Google Cloud or AWS
If your SLOs are already set up in Google Cloud Monitoring or in Amazon CloudWatch Application Signals, you don't have to rebuild them. Import them, and the cloud stays the one place where they are defined.
Import an SLO
- Connect the Google Cloud project or AWS account as a data source under Settings → Error budgets, if you haven't yet.
- On the Error budgets page, select the service and press Add SLO.
- Choose Import from GCP or Import from AWS.
- Pick the data source. Agile Analytics lists the SLOs it finds there: in the Google Cloud project, or in the AWS account and region.
- Select an SLO. Its settings are shown read-only: name, goal, compliance period and how good and bad events are counted.
- Press Save.
The SLO gets the name it has in Google Cloud or AWS. SLOs that are already added to the service are marked Added and can't be selected again. SLOs that can't be imported are greyed out, with the reason.

What happens after the import
- The first import loads the last 30 days, so the chart has history straight away.
- After that, new results are imported every 30 minutes, and also when you open the service on the Error budgets page.
- Agile Analytics reads the good and bad events from the cloud and calculates the error budget, burn rate and steps the same way as for any other SLO. Imported SLOs count towards Reliability, the signals and the DORA metrics like the rest.
- The cloud is the source of truth. A changed goal or name in Google Cloud or AWS is picked up at the next import, and an imported SLO can't be edited here.

What can be imported
| Supported | Not supported | |
|---|---|---|
| Google Cloud Monitoring | Request-based SLOs: good/total ratio and distribution cut, and the basic SLIs of Cloud Run, App Engine and other managed services | Windows-based SLOs: they count good and bad time windows instead of events |
| AWS Application Signals | Request-based SLOs, on a service operation or on any CloudWatch metric | Period-based SLOs: they count good and bad time periods instead of requests |
Removing an imported SLO
Open the SLO and press Remove SLO. This only removes it from Agile Analytics; the SLO in Google Cloud or AWS is not touched. Its past results stay in the history, as with other SLOs.
If the SLO is deleted in Google Cloud or AWS, Agile Analytics keeps the SLO and its history, and shows The last import failed on it. Remove it here when you no longer need it.
SLOs on Cloudflare traffic
Cloudflare doesn't have SLOs to import, but it counts the traffic of your sites. Choose what to measure and set the target here; Agile Analytics reads the good and bad events from Cloudflare. First connect your Cloudflare account: Connect Cloudflare.
Add a Cloudflare SLO
- On the Error budgets page, select the service and press Add SLO.
- Choose Cloudflare and pick the data source.
- Choose a zone (to measure its requests) or a Web Analytics site (to measure page loads in the browser). Sites show how many page loads they had in the last 7 days.
- Under What to measure, choose an SLI. What the zone's plan or the site's setup can't measure is greyed out, with Cloudflare's reason.
- Check the threshold (response times only), the goal and the name.
- Optionally, choose a hostname. The list shows the hostnames Cloudflare saw in the last 7 days, with their traffic. A hostname also counts the requests that name a port, such as
www.example.com:443. - Press Save.
If the chosen zone, site or hostname had no traffic in the last 7 days, the form warns you, because the SLO would get no data.

What can be measured
| SLI | Good events | Starts with |
|---|---|---|
| Availability | Requests without a 5xx answer | 99.9% |
| Origin response time | Requests your origin server answered within the threshold. Requests Cloudflare answers itself (from its cache, or a redirect) don't count. | 95% within 500 ms |
| Time to first byte | Requests whose first byte was sent within the threshold (Pro plan and higher) | 95% within 200 ms |
| Largest Contentful Paint | Page loads with a good LCP: 2.5 s or less | 75% |
| Interaction to Next Paint | Page loads with a good INP: 200 ms or less | 75% |
| Cumulative Layout Shift | Page loads with a good CLS: 0.1 or less | 75% |
The Core Web Vitals use Google's thresholds, as Cloudflare rates them. Page load time can't be measured as an SLI: Cloudflare only reports averages and percentiles for it. Largest Contentful Paint is the better measure of how fast a page feels.
After saving
- The first import loads up to 30 days of history, usually within seconds. Until then the service shows "Importing the first results of …".
- After that, new results are imported every 30 minutes, and also when you open the service on the Error budgets page.
- The SLO counts towards Reliability, the signals and the DORA metrics like any other SLO.
Accuracy
Cloudflare's numbers are estimates: it counts from a sample of the traffic, and scales the count up. The last three weeks are nearly exact. Cloudflare keeps older data more coarsely, so the oldest part of the first 30 days is a rough estimate, and a rare error can be missing from it. Each SLO shows how exact its last import was, under Accuracy.
Changing or removing a Cloudflare SLO
A saved Cloudflare SLO shows what it measures, read-only. To change it, remove it and add it again. Remove SLO removes it from Agile Analytics; its past results stay in the history.
If an import finds no matching traffic, the SLO says so. Check the zone or site and the hostname: a hostname has to match the traffic exactly, for example www.example.com rather than example.com.

Reading the page
For each SLO you see the goal and the measured value for the period, the error budget left, the burn rate (how fast the budget is being spent; a rate above 1 means it runs out before the end of the window) and a chart of good and bad events over time. The step selector switches between the windows. Notes can be added to a point in time, and a Jira ticket can be attached to an incident.
The last job status at the top tells you whether the last measurement succeeded. When it failed, the data may be stale: check the backend's credentials under Settings → Error budgets.

Where error budgets are used
- Reliability, one of the eight health areas: each SLO scores 100 within its budget, less the further it overspent.
- The Reliability tile on the overview and the team health ring.
- Signals: a message when an SLO goes over its error budget and when it is back within it.
- Change failure rate and time to restore in the DORA metrics, through the linked repositories.
Filter examples (Google Cloud Monitoring)
Latency (distribution cut)
Filter valid:
project="google-project-name"
resource.labels.module_id="module-name"
metric.type="appengine.googleapis.com/http/server/response_latencies"
(metric.labels.response_code = 429 OR metric.labels.response_code = 200 OR
metric.labels.response_code = 201 OR metric.labels.response_code = 202 OR
metric.labels.response_code = 203 OR metric.labels.response_code = 204 OR
metric.labels.response_code = 205 OR metric.labels.response_code = 206 OR
metric.labels.response_code = 207 OR metric.labels.response_code = 208 OR
metric.labels.response_code = 226 OR metric.labels.response_code = 304)
Threshold bucket: 19 · Good below threshold: yes
Availability (good/bad ratio)
Filter good:
project="google-project-name"
metric.type="appengine.googleapis.com/http/server/response_count"
resource.type="gae_app"
resource.label.module_id="module-name"
(metric.labels.response_code = 429 OR metric.labels.response_code = 200 OR
metric.labels.response_code = 201 OR metric.labels.response_code = 202 OR
metric.labels.response_code = 203 OR metric.labels.response_code = 204 OR
metric.labels.response_code = 205 OR metric.labels.response_code = 206 OR
metric.labels.response_code = 207 OR metric.labels.response_code = 208 OR
metric.labels.response_code = 226 OR metric.labels.response_code = 304)
Filter valid:
project="google-project-name"
metric.type="appengine.googleapis.com/http/server/response_count"
resource.type="gae_app"
resource.label.module_id="module-name"
Queue coverage (good/bad ratio)
Filter good:
project="google-project-name"
metric.type="pubsub.googleapis.com/subscription/ack_message_count"
resource.type="pubsub_subscription"
Filter bad:
project="google-project-name"
metric.type="pubsub.googleapis.com/subscription/num_undelivered_messages"
resource.type="pubsub_subscription"