Skip to content

SLOs

A service level objective (SLO) says how much of the time a service should be working, for example 99.9 % over 30 days. Argavon measures SLOs from your incidents, so you get a real number without sending it any request counts.

You find SLOs on the SLO Dashboard page. Everyone can read them; creating and deleting them needs the operator role.

How an SLO is measured

Alerts do not carry request counts, so Argavon measures time:

A minute is bad while the SLO's service has an open high or critical incident.

In detail:

  • An incident counts from its first alert until it is resolved. Acknowledged incidents still count: acknowledging is not fixing.
  • The service name is matched without regard to case.
  • Incidents of low, medium or unknown severity do not count.
  • When several incidents overlap, each minute counts once.
  • Part of a minute counts as a whole minute: a 20-second outage is one bad minute.
  • Sample incidents never count.

When measurements are recorded

  • A background job runs every 5 minutes, and once when the server starts.
  • Each run counts the bad minutes since the last run and stores them as hourly rows (one row per UTC hour that had bad minutes).
  • A new SLO is measured as soon as you create it, one full window back. If the service had incidents in the last 30 days, a new 30-day SLO shows them straight away.
  • An incident that is still open counts up to the moment of the run.

Reporting request counts instead

If you have request counts, you can send them:

curl -X POST https://argavon.com.com/api/v1/slos/slo-1730700000000000000/measure \
  -H "Authorization: Bearer $NEUROOPS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"total_requests": 120000, "good_requests": 119910, "bad_minutes": 0}'

Each call reports one interval: the requests and bad minutes since your previous report. Values must be zero or more, and good_requests cannot exceed total_requests. This needs the operator role.

When you report numbers for an SLO, they replace the incident minutes for that window: Current is the success ratio of your requests (good ÷ total), and the error budget and burn rates count the bad_minutes you report. Incident minutes Argavon records for the same service are not added on top. Report bad_minutes too, or the budget never moves.

The numbers on an SLO card

Field Meaning
Status healthy, warning, critical or breached (see below). "Not measured yet" until the first measurement.
Error budget remaining The share of allowed bad minutes not yet used.
Current Good minutes ÷ minutes in the window, or the request success ratio when you report requests.
Target The target you set.
Burn rate (1h / 6h) How fast the budget is being used, over the last hour and the last 6 hours.
Time to breach Hours until the budget is gone at the 6-hour burn rate. ∞ when nothing is burning.

Error budget

The budget is the number of bad minutes the target allows over the window:

budget minutes = (100 − target %) ÷ 100 × window days × 24 × 60

A 99.9 % SLO over 30 days allows 43.2 bad minutes.

Burn rate

The burn rate compares bad minutes in a recent period with the rate that would use the budget exactly over the whole window:

burn rate = bad minutes in the period ÷ (minutes in the period × (100 − target %) ÷ 100)

A burn rate of 1 uses the budget exactly by the end of the window. 14.4 over one hour uses 2 % of a 30-day budget in that hour.

Status

Argavon uses a multi-window burn-rate rule. The first that applies wins:

Status When
breached The budget is used up.
critical Less than 10 % of the budget is left, or the 1-hour burn rate is at least 14.4 and the 6-hour burn rate is at least 6.
warning Less than 25 % of the budget is left, or the 6-hour burn rate is above 1.
healthy Anything else.

The tiles at the top of the page count only measured SLOs: an SLO that is not measured yet is not counted as healthy.

The source label

Under the status, each card says where its numbers come from:

  • "Measured from incidents: a minute counts as down while checkout-api has an open high or critical incident · updated 2 min ago" when Argavon counted incident minutes.
  • "From reported request counts · last report 5 min ago" when request counts were sent to /measure in the window.

The API returns the same as source (incidents, reported, or empty when not measured yet) and measured_at.

Create an SLO

On the SLO Dashboard, select Define SLO and fill in:

Field Default Notes
Service Required. Must match the service name on your alerts.
SLO name Required.
Target % 99.9 A value outside 0–100 is replaced by 99.9.
Window (days) 30
Metric type Availability Availability, Latency or Error rate.
Description

Note

The metric type is a label. Every SLO is measured the same way, from incident minutes or reported requests.

Or with the API:

curl -X POST https://argavon.com.com/api/v1/slos \
  -H "Authorization: Bearer $NEUROOPS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"service": "checkout-api", "name": "Checkout availability", "target_percent": 99.9, "window_days": 30}'

GET /api/v1/slos lists every SLO with its status. GET /api/v1/slos/{id} returns one with its measurements, and DELETE /api/v1/slos/{id} removes it.