Design guide · Frappe Cloud V2
Beacon: the Incident and Alert Manager
This guide is for a new engineer. It tells what we track, how we alert and who gets the call. It also tells how customers learn about a problem, and who fixes what. It covers every app that sends data to Beacon: Atlas, metald, Cargo, Datum, Central and Pilot.
- We page on symptoms and explain with causes. A fast burn of a service's error budget calls a person. About 70 cause rules name the broken host, node or app, so the responder knows where to start.
- One problem gives one incident and one escalation. Beacon writes an alert only when its state changes. It groups related alerts into one incident. It calls a person only for High and Critical.
- Each layer tells its own owner. One down site is the customer's problem, and Pilot tells the customer through Central. Many down sites on one server is ours, and Beacon calls the on-call responder.
- A person decides what customers see. The status page shows the measured service status automatically. A person publishes an incident as Unlisted (link only) or Public. Beacon never publishes by itself.
1Goals
Four goals pull against each other. Every rule in Beacon is a choice between them.
Find problems before customers do
Measure what customers feel (the SLI) and watch the parts that break (cause rules). Probe public endpoints from outside the region.
Do not overwhelm engineers
Call a person only for customer impact. One problem gives one incident. Everything else goes to chat or email at a lower severity.
Find regressions
Catch new kinds of errors (error fingerprints), release-wide failures, error spikes against a baseline, and slow budget burn.
Communicate simply
One incident has one update stream and one link. Customers see the status page, an Unlisted link or an email from Central.
Non-goals. Beacon does not watch each site or each VM. Their own layer does that and tells the owner. Beacon does not write to ClickHouse. Beacon does not publish incidents or decide customer messages.
2The whole system
Each region has its own Datum and ClickHouse. Beacon is one global Frappe site outside the regions.
Two paths reach a customer: Beacon (platform problems) and Pilot through Central (problems of one site or server).
| Part | Job | Repository |
|---|---|---|
| Pilot | Runs in each customer VM. Pings each site each minute, takes backups, applies updates. Tells the customer about one site or server. Sends counts to Datum. | frappe/pilot |
| metald | Runs on each host. Compares wanted and actual VM state. Sends host metrics, VM states, storage and hardware data. | frappe/atlas (metal/) |
| Datum agent | Vector with one configuration, on each Atlas service VM and Cargo machine. Sends machine metrics, journal lines and role metrics, such as proxy requests. | datum_client/agent |
| Atlas | Controls hosts, VMs and service nodes in a region. Sends inventory, sync age, readiness probes and Error Logs. Serves the resource list to Beacon. | frappe/atlas |
| Cargo | Builds images and runs object storage (Garage). Deploys Datum. Sends build, storage and backup data. | frappe/cargo |
| Central | The global dashboard, API and billing. Sends API, payment, resource action and webhook data to one region's Datum. Delivers customer notifications. | frappe/central |
| Datum + ClickHouse | Stores samples, logs and traces for one region. Owns the schema. Beacon reads with a read-only user. | frappe/Datum |
| Beacon | Runs rules, keeps alert and incident state, measures SLOs, calls responders and serves the status page. | frappe/beacon |
3Who owns what
Each layer watches the layer below it and tells its owner when one item fails. Beacon acts when a failure is too wide for one owner, or when a watcher stops.
A failure is always visible one level up. So Beacon needs no "not reporting" check for each site or VM.
Our problem or the customer's problem
Use this table to decide who is told and who fixes. "Platform" means the Frappe Cloud team. The producer team owns the rule, its runbook (the steps for a responder) and the fix. The on-call responder acts first and hands over to that team.
| Problem | Owner | Found by | Who is told, and how | Who fixes |
|---|---|---|---|---|
| One site is down, or its app code fails | Customer | Pilot uptime ping, held 5 min | Customer team: Central feed and email, bench webhooks | Customer |
| One site's backups keep failing (6 failures since the last good one) | Customer | Pilot | Customer team through Central | Customer; support helps on request |
| A customer VM uses more CPU, memory or disk than its limit (90% by default) | Customer | Pilot, held 5 min | Customer team through Central | Customer: resize or clean up |
| 3 or more sites, and 20%, down on one server | Platform | pilot-sites-down | On-call: call, chat, email | On-call, then Pilot team |
| Backups fail on many servers | Platform | pilot-backups-failing | On-call (Medium, or call at half of servers) | Often object storage: Cargo team |
| One app release fails on 3 or more servers | Platform | pilot-updates-failing | Chat (Low) | Owner of the release |
| A host, its storage or hardware fails | Platform | Host rules | On-call: call | Atlas and Metal team |
| A proxy, VPN gateway or IPv6 router fails | Platform | Service node rules, Networking SLOs | On-call: call | Atlas team |
| Object storage or image builds fail | Platform | Object storage and Cargo rules | On-call (Critical, High) or chat and email | Cargo team |
| Telemetry stops: no data reaches Datum | Platform | datum-ingest-stopped, HTTP probe | On-call: call | Cargo team (deploys Datum) |
| Central API, payments or server actions fail | Platform | Central rules and SLOs | On-call: call | Central team |
| Pilot cannot send customer alerts to Central | Platform | pilot-central-delivery | On-call: call | Pilot and Central teams |
| Beacon itself stops | Platform | External heartbeat stops | The heartbeat service calls the team | Beacon owner |
| A customer reports a problem first | Platform | Support | Support opens an incident with Detected By = Customer | On-call. A postmortem is required, and the team adds a rule or SLI. |
Roles in one incident. Beacon records who acknowledged it (Acknowledged By). The person who acknowledges owns the incident until it resolves or they hand it over in the incident updates. Support sends Unlisted links to customers. The producer team writes the postmortem and its action items. This hand-off rule is our working agreement; Beacon does not enforce it.
4How data gets in
Almost every signal is a metric sample or a log line in the ClickHouse of one region. SQL rules and SLI queries read it there. HTTP and TLS rules are the exception: Beacon calls the endpoint directly.
- A producer sends a value to the Datum of its region with a token (a signed JSON Web Token, JWT). The token names the sender's resource ID, such as the Metal Server name of a host. The sender cannot change it.
- Datum checks the token and writes the rows. Datum refuses a whole request when one sample is not valid. No sender retries, so a failed request is a gap.
- Each Resource Source (the Atlas and Cargo of each region) serves a resource list each minute. Beacon keeps only rows whose resource ID is in this list, with its type and parent.
- Beacon runs each rule at its interval and each SLI query each minute, as the read-only
beaconuser. ClickHouse limits each query to 20 seconds, 4 GB and 100,000 rows.
| Producer | Runs on | Sends |
|---|---|---|
| metald | Each host | Machine metrics, VM states, storage, hardware, BMC (the management chip), its own info logs |
| Datum agent | Atlas service VMs, Cargo machines, hosts (logs only) | Machine metrics, journal at warning and higher, role metrics (proxy, Garage, WireGuard, IPv6 router) |
| Pilot | Each Pilot VM | Heartbeat (pilot_info), site counts by state (pilot_sites), backups, database state, disk space, calls to Central, update events |
| Atlas | The Atlas site of the region | Inventory of expected machines (atlas_machine), host sync age, readiness of service nodes, jobs, API calls, Error Logs |
| Cargo | The Cargo site of the region | Image builds, object storage health and backups, Cargo inventory, Error Logs |
| Central | The global Central site | API requests, payments, resource actions, webhooks, background work, Error Logs |
Rules and services live with the producer, in beacon/ of each repository: rules/*.sql, rules/*.http, rules/*.tls, services/*.sql and runbooks/*.md. An admin selects Sync Definitions in Beacon Settings to load them. A sync applies all files of a source or none.
Two settings stay manual after a sync. A global service, such as Dashboard and API, needs its Query Region set in Desk. An HTTP or TLS file without a region line loads turned off; an admin sets its Regions and turns it on. The sync result warns about both. Until then, those checks do not run.
5What we track
70 rule files in 4 repositories, and 2 rules built into Beacon. Open a group to see each rule.
The chart counts the severity in each rule's header. 20 rules also return a lower severity at a lower limit, so many alerts are lower than this.
How to read the tables. Wait is pending_for: how long a problem must stay before the alert fires. Clear is resolve_after: how long without the problem before it recovers. One rule can return a lower severity at a lower limit, such as Low at 25% disk free and High at 10%. The Lower levels column lists these. HTTP and TLS rules run from the Beacon site, outside the region.
Metal hosts1 Critical7 High5 Medium
Resource: Metal Host. Repository: Atlas. metald and Atlas send the data.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
host-down | A Running host has no Atlas sync for 5 min and metald is silent. The incident covers all VMs on the host. | Critical | 1 / 2 min | |
atlas-cannot-sync-host | Atlas cannot sync a Running host. | High | 1 / 2 min | |
vms-unavailable-on-host | 3 VMs and 20% of wanted VMs, or every wanted VM, are not available. | High | Medium fewer VMs | 5 / 2 min |
metald-unhealthy | A metald loop stalled, a change waits too long, or VMs fail. | High | Low dropped telemetry | 2 / 5 min |
host-storage-failed | A pool, array or mount can lose data or stop writes now. | High | 1 / 10 min | |
host-hardware-degraded | An uncorrected memory error. | High | Medium failing disk, CPU over 85 °C; Low worn parts | 5 / 60 min |
bmc-problems | A critical BMC event. | High | Medium bad component or BMC (the server's management chip) unreachable; Low warning | 5 / 15 min |
host-pool-capacity | A ZFS pool is over 90% used. | High | Low over 80% | 10 / 10 min |
host-limits | Conntrack or open file table near full, or the clock is not synced. | Medium | 10 / 15 min | |
host-network-errors | A link is up with no carrier. | Medium | Low over 10 NIC errors in 1 h | 5 / 60 min |
host-stress | CPU, memory or I/O pressure for 15 min. | Medium | Low memory allocation over 90% | 15 / 15 min |
host-systemd-units | A systemd unit failed. | Medium | Low 3 restarts in 1 h | 5 / 60 min |
vm-migrations-failed | VM migrations fail on the host. | Medium | 5 / 60 min |
Every machine1 High2 Medium2 Low
Resource: Metal Host or Virtual Machine (service VMs and Cargo machines). Tenant VMs are the customer's and do not alert here.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
machine-disk-full | A file system has under 10% free. | High | Low under 25% | 5 / 15 min |
machine-silent | A machine that Atlas expects has sent nothing for 3 min. | Medium | 2 / 2 min | |
machine-stress | Memory over 90%, or load over 1.5 for each core, for 15 min. | Medium | 10 / 15 min | |
repeated-errors | The same log message 10 times in 1 h. | Low | 5 / 60 min | |
telemetry-dropped (Cargo) | The Datum agent dropped 100 events in 1 h. | Low | 5 / 60 min |
Regional network services5 High1 Medium
Proxies, WireGuard VPN gateways, IPv6 routers, certificates and public IPs. Repository: Atlas.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
service-node-not-ready | A proxy, VPN gateway or IPv6 router fails 2 readiness probes, and a third run confirms (about 3 min). | High | 1 / 2 min | |
atlas-service-nodes-failed | A service node is in Failed status. | High | 2 / 5 min | |
ipv6-router-detached | The router's eBPF program (kernel packet code) is not attached, so region IPv6 stops. | High | 2 / 2 min | |
tls-certificate-expiring | The wildcard certificate has under 3 days left. Beacon drops the rows for metald certificates today: see gaps. | High | Medium under 21 days | 15 / 30 min |
atlas-public-ips-exhausted | No free public IPv4 address. | High | Medium under 5 or 10% free | 5 / 10 min |
proxy-error-spike | Proxy-made 5xx at 5 times the 70-min baseline, or over 5% for 70 min. | Medium | 2 / 5 min |
Atlas application1 Critical5 High5 Medium
The Atlas site of each region. Resource: Atlas, or the Region for atlas-silent.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
atlas-silent | Atlas sent no per-minute sample. | Critical | 1 / 2 min | |
atlas-api-unreachable (HTTP) | Beacon cannot load the Atlas public key set from outside. | High | 3 / 5 min | |
atlas-api-errors | One operation has 5 errors and 5% in 10 min, or all calls over 1% in 15 min. | High | 2 / 5 min | |
atlas-metal-errors | A burst of failures to reach metald. | High | Medium repeats for 1 h, or 401/403 | 3 / 5 min |
atlas-queue-backlog | The job queue backs up. | High | 10 / 5 min | |
atlas-disk-full | Under 10% disk free. | High | Low under 25% | 5 / 10 min |
atlas-failed-jobs | 3 or more new failed jobs in one queue in 1 h. | Medium | 1 / 15 min | |
atlas-error-logs | A new error fingerprint (one kind of error) repeats 3 times in 1 h. Or any fingerprint repeats 5 times in 15 min, or 20 times in 1 h. | Medium | 1 / 15 min | |
atlas-stuck-work | A VM migration runs, or a draft VM waits, for 1 h. | Medium | 5 / 10 min | |
warpgate-sync-failing | No full Warpgate sync for 15 min. | Medium | 5 / 2 min | |
atlas-certificate (TLS) | The Atlas API certificate has under 14 days left. | Medium | 15 / 30 min |
Cargo and object storage1 Critical5 High8 Medium
Resource: Cargo Server, or the Region for HTTP and TLS checks. Repository: Cargo.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
object-storage-unavailable | A partition has no write quorum (too few nodes agree to accept a write), or a node has not reported for 5 min. | Critical | 2 / 5 min | |
object-storage-health | A cluster reports Critical health. | High | Medium Degraded, Unknown or silent | 3 / 5 min |
object-storage-unreachable (HTTP) | The Garage health route through the gateway does not answer 200. | High | 3 / 5 min | |
object-storage-api-unreachable (HTTP) | An unsigned S3 request does not get the expected 403. | High | 3 / 5 min | |
object-storage-errors | S3 answers with 5xx. | High | 5 / 10 min | |
object-storage-disk-full | A storage node disk is almost full. | High | 10 / 15 min | |
object-storage-redundancy | A storage node is down or blocks failed to copy. Data is still served. | Medium | 10 / 10 min | |
object-storage-backup-stale | No metadata backup in 1 day. | Medium | 15 / 60 min | |
object-storage-certificate (TLS) | The S3 certificate has under 14 days left. | Medium | 15 / 30 min | |
cargo-build-failed | The newest build of a listed image failed. | Medium | 5 / 60 min | |
cargo-build-stuck | An image build does not finish. | Medium | 5 / 60 min | |
cargo-images-stale | The newest usable image is over 2 days old, while Cargo tracks Pilot releases. | Medium | 15 / 60 min | |
cargo-errors | A Cargo error fingerprint repeats. | Medium | 1 / 15 min | |
cargo-silent | No Cargo sample for 3 h. | Medium | 15 / 30 min |
Datum and telemetry2 High3 Medium2 Low
If telemetry stops, every other rule goes quiet. These rules catch that. Repository: Cargo, which deploys Datum.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
datum-ingest-stopped | No new sample in the region for 3 min. | High | 1 / 3 min | |
telemetry-unreachable (HTTP) | The Datum health route does not answer 200 from outside. | High | 3 / 5 min | |
datum-writes-refused | Datum refuses requests. A 5xx returns High. | Medium | see gaps | 5 / 15 min |
telemetry-certificate (TLS) | The ingest certificate has under 14 days left. | Medium | 15 / 30 min | |
telemetry-read-certificate (TLS) | The ClickHouse read certificate has under 14 days left. | Medium | 15 / 30 min | |
telemetry-volume | A sender sent 2 times its 7-day median, and over 100,000 rows. | Low | 60 min / 1 day | |
telemetry-dropped | Listed under Every machine. | Low | 5 / 60 min |
Central7 High3 Medium
Central is global, but it sends to the Datum of one region (Central Telemetry Region). Resource: Region.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
central-silent | Central stopped its per-minute gauges for 5 min. | High | 3 / 2 min | |
central-api-unreachable (HTTP) | /api/method/ping does not answer pong. | High | 3 / 5 min | |
central-dashboard-unreachable (HTTP) | The dashboard does not load. | High | 3 / 5 min | |
central-api-errors | Over 5% 5xx in 10 min (at least 50 requests). | High | Medium over 1% in 1 h, or one group | 2 / 5 min |
central-payments | 5 failed payments that are half of a gateway's attempts in 1 h, or a gateway webhook waits 15 min. | High | Medium failed webhook; Low no capture for 1 day | 2 / 10 min |
central-resource-actions | 3 failed server or site actions that are 20% in 1 h, or an action open for 2 h. | High | Medium open for 30 min | 2 / 10 min |
central-webhooks-failing | 10 exhausted webhook requests that are 20% of one webhook in 1 day. | High | Medium one exhausted, or 10 retrying | 10 / 30 min |
central-background-work | Billing run, proxy routes, snapshots, emails or scheduled jobs are stuck or late. | Medium | Low invoice sync | 10 / 15 min |
central-errors | An unhandled error fingerprint repeats 5 times in 15 min. | Medium | 1 / 15 min | |
central-certificate (TLS) | The Central certificate has under 14 days left. | Medium | 15 / 30 min |
Pilot3 High1 Medium1 Low
These rules look across many servers. One site or one server is the customer's, and Pilot tells them directly.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
pilot-sites-down | 3 sites and 20% of checked sites are down on one server. App errors count, because a shared app can break after an update. | High | 5 / 5 min | |
pilot-central-delivery | 3 or more customer alerts from one Pilot did not reach Central in 15 min. | High | 5 / 15 min | |
pilot-backups-failing | At least 5 servers and 10% of the servers that take backups are failing (Medium). High when half of them fail. A server fails when the newest backup failed for half or more of its sites. | High | Medium 5 servers and 10% | 30 / 60 min |
pilot-silent | A Pilot that Atlas expects to run sent no pilot_info or no pilot_sites for 10 min. | Medium | 5 / 2 min | |
pilot-updates-failing | The same release of one repository fails on 3 or more servers. | Low | 5 / 60 min |
Built into Beacon1 Critical1 High
These rules need no file. Beacon creates them.
| Rule | Fires when | Severity | Lower levels | Wait / clear |
|---|---|---|---|---|
| Region unreachable | 2 ClickHouse probes in a row fail. Beacon skips the region's SQL rules and shows its services as Unknown. HTTP and TLS rules still run. | Critical | 0 / after 2 good probes | |
| SLO burn (one per service) | The service uses its error budget faster than a set rate. See section 8. | High | Medium Page On Burn off; Low slow burn or one bad reporter | 0 / 5 min |
| Region Suspect (no alert) | More than half of the hosts are silent in Datum. Rules still run. Services show as Unknown. | State |
Services (what customers feel)
A service is one line on the status page. Its SLI query returns good and valid events for each reporter each minute.
| Service | Good event | Scope | SLO | Repo |
|---|---|---|---|---|
| Sites hidden | Pilot pings a site and it answers. The SLI excludes app errors. | Region | 99.9% | Pilot |
| Servers | A VM that should run is running. | Region | 99.9% | Atlas |
| Proxy | A request has no proxy-made 5xx. Major Outage below 50%. | Region | 99.9% | Atlas |
| Object Storage | An S3 request has no 5xx. | Region | 99.9% | Cargo |
| Public networking | A host's public link is up; an IPv6 router forwards. | Region | 99.9% | Atlas |
| Private networking | A WireGuard tunnel between hosts had a recent handshake. | Region | 99.9% | Atlas |
| Customer VPN gateway | A gateway node passes its health check. | Region | 99.9% | Atlas |
| Dashboard and API | A Central request has no 5xx. | Global | 99.9% | Central |
| Server actions no call | Create, start, stop, restart or resize finishes. | Global | 99% | Central |
| Billing declared | No metric yet. Published incidents set its status. | Global | — | Central |
6How a rule alerts
A rule is one query that returns only failing rows. Each row is one problem on one resource.
-- title: Host disk almost full <- alert title
-- severity: High <- highest severity of this rule
-- resource_type: Metal Host <- rows for other types are dropped
-- interval: 300 <- run every 5 min
-- pending_for: 300 <- must fail 5 min before it fires
-- resolve_after: 600 <- 10 min clean before it recovers
-- runbook_url: https://... <- required for High and Critical
SELECT resource_id, alert_key, value, detail, severity FROM ...
A query error never resolves an alert. A firing alert that stays the same causes no database write. An unchecked resource is one with monitoring disabled, or a Suspended or Terminated one.
Alert states
- Severity can change. A Pending alert takes the severity of its current row. A Firing alert only goes up, and then Beacon announces it and calls again.
- Timers restart after a gap. When the last good run is older than 3 intervals, Beacon restarts the pending and clean timers.
- Retention. Beacon keeps Cleared alerts for 7 days and other resolved alerts for 90 days.
7How we limit noise
Each step removes alerts that a person does not need. Only the last step can wake someone up.
Rule design
- Watch one level up. No rule for one site or one VM.
- Send counts, not items. A site is never a label value.
- Use a rate, such as 5 failed of 20, not a bare count.
- Return a lower severity at a lower limit, such as Low at 25% disk free.
- Each rule points to one fix and has a runbook.
Timing
pending_foris at least one interval, so an alert fires on the second failing run at the earliest.resolve_afteris at least 2 intervals, so it does not flap.- A new or returned resource is not checked for 10 minutes.
- A child resource waits 90 s before a call, so its parent's incident can take it.
Suppression
- Silence: mutes a known problem for up to 30 days, with a reason.
- Maintenance: mutes its scope, plus 10 min after the end.
- Held removal: a resource list that would remove over 10% waits for an admin.
- Region Unreachable: one Critical alert; the region's SQL rules are skipped.
Feedback
- A failure that repeats each minute writes one Error Log.
- One chat message for each incident in each run.
- Each week, review the alerts of each rule. Beacon Health lists the noisiest rules.
| Mute | Use it for | Alerts | Counts against SLO |
|---|---|---|---|
| Maintenance | Planned work with a start and an end | Suppressed in scope | No, only when Public and published before its start |
| Silence | A known problem, for a set time | Suppressed, still visible | Yes |
| Monitoring disabled | A resource we never want to check | Not evaluated | Its rows are dropped |
Maintenance lifecycle. A maintenance is an incident of type Maintenance. It goes Scheduled, then In Progress at its start (or with Start Maintenance), then Completed at its end. A Scheduled maintenance can be cancelled. You can extend the end while it runs. A maintenance mutes the resources in its scope. To also mute the SLO burn alerts of its regions, set Mute SLO Burn.
8SLI, SLO and outages
The SLO is the symptom side. It calls a person when customers feel a problem, even when no cause rule knows why. This section shows every number Beacon computes, with a worked example.
The four terms
| Term | Meaning | Example: Proxy service |
|---|---|---|
| SLI (service level indicator) | Good events divided by valid events, measured. | 1,998 good requests of 2,000 valid requests = 99.9% |
| SLO (service level objective) | Our target for the SLI over 30 days. Default 99.9%. | 99.9% |
| Error budget | The share of valid events that may fail in 30 days: 100% minus the SLO. | 0.1% of requests |
| SLA (service level agreement) | A promise to customers. It must be equal to or lower than the SLO. Beacon reports on it and alerts before we break it. | 99.5% |
A good event and a valid event depend on the service. Its SLI query in beacon/services/*.sql defines them. For Proxy, a valid event is a request, and a bad event is a 5xx error that the proxy made itself. A 5xx error from the site's own code is good for Proxy, because the customer owns that code. The rule: count only failures that the platform causes. Else a few broken customer apps use the whole budget of a region.
One measurement, each minute
A dead host makes its VMs silent, and the Host down alert makes them count as bad. A Pilot restart or a gap in Datum leaves the reporter out, so it never looks like an outage. When the query fails or returns no valid events, Beacon stores nothing for that minute and the status is Unknown.
Error budget: a worked example
The Proxy service of one region gets 2,000 valid requests each minute. 30 days have 43,200 minutes.
| Step | Calculation | Result |
|---|---|---|
| Valid events in 30 days | 2,000 × 43,200 | 86,400,000 |
| Error budget, in events | 86,400,000 × 0.1% | 86,400 failed requests |
| Same budget, as a full outage | 43,200 min × 0.1% | 43.2 min |
| Bad events so far (10 days measured) | from Service Days | 14,400 |
| Valid events so far | from Service Days | 28,800,000 |
| Valid events projected to 30 days | 28,800,000 × (30 / 10) | 86,400,000 |
| Budget left | 1 − 14,400 / (0.1% × 86,400,000) | 83.3% |
Formula: budget left = 1 − (valid − good) / (error budget × valid projected to 30 days). Beacon projects only until 30 days are measured. The value shows as Budget left, 30 days on the service form and in Service health. It can go below zero: then we broke the SLO.
Burn rate
The burn rate is how fast we use the budget: (1 − SLI) / (1 − SLO). A burn rate of 1 uses the whole budget in exactly 30 days.
| Burn rate | Error rate at SLO 99.9% | The whole 30-day budget lasts |
|---|---|---|
| 1 | 0.1% | 30 days |
| 6 | 0.6% | 5 days |
| 14.4 | 1.44% | 50 hours |
| 1,000 | 100% (full outage) | 43 minutes |
Each burn alert checks two windows. It fires only when the burn rate meets its limit in both. The long window shows that the problem is real. The short window lets the alert resolve a few minutes after the fix. Each limit comes from budget share × 720 h / long window: for fast, 2% × 720 / 1 = 14.4.
| Alert key | Budget used | Long window | Short window | Burn rate | Severity |
|---|---|---|---|---|---|
fast | 2% | 1 h | 5 min | 14.4 | High calls |
medium | 5% | 6 h | 30 min | 6 | High calls |
slow | 10% | 3 days | 6 h | 1 | Low |
sla, only with an SLA Target | — | 1 h | 15 min | error rate at or above 100 − SLA | High calls |
Example. In the last hour, 2.0% of Proxy requests failed. The 1 h burn rate is 2.0% / 0.1% = 20. In the last 5 minutes, 1.8% failed: burn rate 18. Both are at or above 14.4, so fast fires. The fix lands. The 5-minute window drops below 14.4 within a few minutes, so the burn stops, although the 1 h window still shows errors. After 5 more minutes without a burn, the alert recovers.
Four guards stop false calls:
- A window with fewer than 100 valid events does not alert.
- Service Minutes must cover half of the window, so a new service does not call on its first bad minutes.
- A burn calls only when 3 reporters were bad in one minute of the short window (or all, when fewer than 3 report). Else it is Low, because one bad reporter has its own cause alert.
- A service with Page On Burn off gets Medium instead of High.
A burn alert is a normal alert. Its resource is the region (or the global resource for a global service). It fires at once (no wait) and recovers after 5 minutes without a burn.
Status of a service
A worse status must hold 3 min and a better one 2 min before it shows. Maintenance shows at once. A published outage on the same service outranks Maintenance. The status page shows the worse of this status and the impact of open published incidents. A published impact never makes the status better.
Example. A region has 3 proxies with equal traffic. One proxy is down and its node has a firing cause alert. The SLI is about 67%. That is under 95% and above 50%, so after 3 minutes Proxy shows Partial Outage. When a second proxy fails, the SLI is about 33% and Proxy shows Major Outage.
Uptime and outage minutes on the status page
| Number | How Beacon computes it |
|---|---|
| Uptime of a day, and of 90 days | Measured SLI: sum of good / sum of valid from Service Days. |
| Coverage of a day | Minutes that Beacon measured / minutes of the day. Low coverage means the uptime is less certain. |
| Downtime of a day | Major Outage minutes + 0.3 × Partial Outage minutes (the Atlassian Statuspage method). |
| Bar color of a day | Red: 15 or more downtime minutes. Orange: some downtime, under 15 min. Yellow: no downtime, some Degraded minutes. Blue: Maintenance minutes. Empty (No data): Beacon has no measurement for the day. Else green. |
Example. A day has 10 Major Outage minutes and 20 Partial Outage minutes. Downtime = 10 + 0.3 × 20 = 16 min, so the bar is red. A bad minute that does not hold 3 minutes lowers the uptime. It does not change the status, so it is not downtime.
A declared outage (a Public incident with an impact) changes the status and the bar color. It does not change good and valid, so uptime and the error budget stay measured. A Declared service, such as Billing, has no SLI: its status comes only from published incidents, and the page says Set by incidents, not measured.
9Alerts to incidents
An incident is the record people work on. The rule: after each evaluation and region run, every firing, unsuppressed alert belongs to an open incident.
A join is never silent. Beacon posts one chat message for each incident in each run. A higher severity calls again.
| Step | The alert joins when | Why |
|---|---|---|
| Cover | An open incident has a scope row that covers the alert's resource or a parent of it. Never for an alert on the region resource. | A host incident takes the alerts of its VMs. |
| Pair | A burn alert joins an incident with a cause alert on one of its bad reporters (or a parent). A cause alert on a bad reporter joins an incident that has only burn alerts. | The symptom and its cause share one incident. |
| Group | An open incident has the same rule and region, and is Triggered or under 30 min old. | One rule failing in many places is one outage. |
| Reopen | An Internal incident that Beacon made, with the same rule and region, resolved in the last 30 min. | A flapping problem does not open a new incident each time. |
| Create | No step above matched. Beacon creates an Internal incident in Triggered. | A resource without a parent calls at once. A child waits 90 s. |
Scope. An incident starts with the scope of its first alert, such as "host h12 and everything under it". Beacon computes affected resources only when a person asks. When a new incident covers alerts of another open, Internal, unacknowledged incident, those alerts move, and the empty incident closes as Merged.
Incident states
Inside Open, Post Update can set any of the three statuses from any other. A new alert moves Monitoring back to Investigating.
- Auto resolve. When all alerts recover, Beacon resolves an Internal incident that it made. For an Unlisted or Public incident, Beacon posts to chat that a person must resolve it, so the customer gets a final update.
- Beacon refuses Resolve while unsuppressed alerts still fire, unless the person sets Silence Hours.
- Beacon requires a postmortem when the incident was Public or Critical, took over 1 hour, or a customer found it first. Beacon reminds in chat each day from day 3 to day 30.
10Severity and channels
Severity decides who hears about a problem, and how loud.
| Severity | Meaning | Chat | Email to responders | Phone call | Next responder | Stops |
|---|---|---|---|---|---|---|
| Critical | Customers are down now. Act at once. | Yes | Yes | Yes | after 2 min | Only when someone acknowledges |
| High | Customers are affected, or will be if nobody acts. | Yes | Yes | Yes | after 5 min | After 3 rounds, with a chat post |
| Medium | A person must look today. | Yes | Yes | No | — | — |
| Low | Good to know. | Yes | No | No | — | — |
The times are defaults in Beacon Settings. Paging Paused stops all calls and emails, for example after a database restore. Chat messages are Markdown with the severity, the linked incident name, the region and a table of alerts. Emails use the subject [Severity][Incident] Title.
11Calls and acknowledge
Beacon calls one responder at a time from an ordered list. An answered call acknowledges the incident.
- Beacon calls the primary override until its end time, else the first active responder. Each responder must be an enabled user with the Beacon Responder or Beacon Admin role.
- Staff can also acknowledge in Desk, or with
POST /api/v2/document/Beacon%20Incident/<name>/method/acknowledge. - A failed call or email posts to chat who did not get it.
- Notification states. Each call, email or chat post is one Beacon Notification row: Queued, then Sending, then Sent, Failed or Cancelled. Cancelled means notifications were paused, or the channel or responder was disabled. A row that stays in Sending means the worker stopped during the call to the provider. Beacon does not send it again, because the provider may have it. For email, Sent means Frappe accepted it into its Email Queue; check the Email Queue for delivery errors.
- Each minute Beacon sends a heartbeat to an external service. Beacon holds the heartbeat when a rule evaluation or a notification is over 5 min late. Then the external service calls the team, because Beacon or its workers stopped.
12Telling customers
Customers hear about problems on three paths. Two are automatic; one needs a person.
| Path | What the customer sees | Who starts it | Automatic |
|---|---|---|---|
| Service status | The status of each service on the status page, from its SLI. Unknown shows grey, never the last green. | Beacon, each minute | Yes |
| Pilot through Central | An in-app notification about their own site or server, and an email when their preferences allow it. | Pilot, when a condition holds | Yes |
| Published incident | An incident with updates: on the status page (Public) or by a private link (Unlisted). Email or RSS for followers. | A person | No |
A platform incident, from alert to customer
- Visibility is Internal (staff only), Unlisted (anyone with the link) or Public (listed). Every incident starts Internal. Beacon never publishes and never reopens a public incident.
- The link has a random public ID, so no one can guess it or count incidents. Regenerate Link stops the old one.
- Followers confirm by email. Confirm and stop links open a page with a button, so link scanners change nothing.
- Status page methods are guest methods. They return only published data and cache each result for 60 s, so outage traffic never reaches ClickHouse.
Customer alerts from Pilot
| Pilot event | Central event type | When Pilot raises it | Emails even when a member turned it off |
|---|---|---|---|
site_down | site_unavailable | Sites down for 5 min, not in maintenance | Yes |
backups_failing | backup_failure | 6 failures since the last good backup | No |
resource_limit_breached | resource_limit_breached | CPU, memory or disk over the limit (90% default) for 5 min | No |
certificate_expiry | certificate_expiry | A site certificate nears expiry | No |
certificate_failed | certificate_failed | A certificate cannot be issued | No |
| Failed update task | migration_failure | An update task fails | Yes |
A Critical event in Central emails at once and ignores member preferences. Other events follow each member's settings, and a digest event waits for the digest. Central refuses Billing and Team events from a Pilot, so a broken bench cannot email a whole team. Central has more event types than these six, such as provisioning, resize, snapshot and billing events. Central raises those itself; this Pilot sends only the six above.
13Finding regressions
A regression is a change that made things worse. These signals catch one within an hour of a deploy or a release, or within days for slow burn.
| Signal | Catches | Rule |
|---|---|---|
| New error fingerprint | An error absent the day before that repeats in the last hour | atlas-error-logs |
| Repeating unhandled error | One error that repeats 5 times in 15 min | atlas-error-logs, cargo-errors, central-errors |
| Same release fails on many servers | A bad app release, not a bad server | pilot-updates-failing |
| Many app errors on one server | A shared app broken by a bench update | pilot-sites-down |
| Error share against a baseline | A proxy change that raises 5xx | proxy-error-spike |
| API error rate by operation | One endpoint broken by a deploy | atlas-api-errors, central-api-errors |
| Telemetry volume doubles | A new version that logs too much or sends a new metric | telemetry-volume |
| Slow burn | A small, steady loss of quality over days | SLO slow burn |
| Image builds | A broken build pipeline | cargo-build-failed, cargo-images-stale |
Beacon Health (Desk, under Health) covers the last 30 days. It shows incidents, time to acknowledge and resolve, notification delay and failures, the noisiest rules and the SLI of each service. Use it in the weekly review:
| Question | When the answer is yes |
|---|---|
| Did it fire without a fix? | Raise the limit, make pending_for longer, or lower the severity. |
| Did another alert already show the problem? | Remove the rule, or merge it into the other rule. |
| Did it flap? | Make resolve_after longer. |
| Did customers see a problem that no alert showed? | Add a metric or a rule, or make the SLI cover it. |
| Did the responder not know what to do? | Improve the runbook. |
14Example: a host fails
A host with 30 VMs and 400 sites loses power at 10:00. The times are approximate.
- Pilots in the VMs go silent. No cause alert covers them yet, so the Sites SLI leaves them out. A Pilot restart looks the same and must not call.
- After 5 min the Atlas sync is old and metald is silent.
host-downreturns the host. After one more run it fires. - Beacon opens an incident with scope "this host and everything under it". The host has no parent, so the call starts at once.
- Now a cause alert covers the silent reporters, so the SLIs count them as bad. A burn alert that fires later joins the same incident by pairing.
- The responder answers. Beacon acknowledges. The responder publishes as Unlisted and gives the link to support.
- The host comes back. The alert recovers after 2 min. The incident is Unlisted, so Beacon asks a person to resolve it. The responder posts a final update and resolves.
15Working in Desk
Engineers do all Beacon work in Frappe Desk. Each flow below shows what Desk does today and what we propose to make it easier. Proposals are not built yet. Each needs a mockup and approval first.
Five rules for every Beacon form.
- The next step is the one primary button. Today Acknowledge does this while an incident is Triggered.
- The runbook is one click from the call.
- A field that drives a state machine is read-only. Only an action changes it, and the action dialog asks only for what it needs.
- A confirmation says what happens next, such as "Phone calls cost money".
- A problem with Beacon itself shows on the Beacon home screen, not only in a log list.
Flows, today and proposed
| Flow | Who | Today in Desk | Proposed change | Priority |
|---|---|---|---|---|
| Answer a call | On-call responder | The chat message links to the incident. Acknowledge is the primary button, and an orange banner shows the next call time. The runbook is on the alert and rule forms, not on the incident: Alerts tab, open the alert, then Runbook. | Add a What fired block at the top of the Overview tab: each firing alert with its resource, detail, Runbook and Silence buttons. | P1 |
| See open work | On-call responder | The workspace has an Open incidents quick list. The full Incidents list filters only by type, and shows severity, status and visibility as plain fields with no color. | Color the list indicator by severity. Default the full list to open incidents, sorted Critical, High, Medium, Low, then by age. Add a saved filter Acknowledged by me. | P1 |
| Check Beacon itself | Beacon owner | Rule evaluation errors, failed notifications and unreachable regions are in separate lists under Logs and Health. | Add a Needs attention block on the Beacon workspace. It lists Triggered incidents, rule evaluations in error, and unreachable regions. It also lists notifications Failed or in Sending for over 5 min, and synced checks that still need Regions or a Query Region. | P1 |
| Tell customers | Responder or support | Publish shows the title, explains the visibility, and asks for the impact for each service. Post Update prefills a message for each status. | Show the status page entry as customers will see it in the Publish dialog. For a Public incident, show "Last public update 35 min ago" and post a chat reminder after 30 min without one. | P2 |
| Mute noise | On-call responder | Create Silence on the alert form prefills region, resource, rule and alert key. The reason is required, and the form previews the matching resources and open alerts. | Offer 1 h, 4 h and 24 h presets for the end time. Add a Silence button to each firing alert on the incident form. | P2 |
| Resolve and learn | Responder, producer team | Resolve asks for a message and Silence Hours. The RCA section has the RCA, public RCA and action items. | When Postmortem Required is set, Resolve asks for an owner and a due date. Add a list filter Postmortem due. | P2 |
| Tune a rule | Producer team | The rule form shows evaluations per region and a Test Rule button. Noise data is only in Beacon Health. | Show 30-day numbers on the rule form: times fired, median firing time, and the share of alerts that recovered within 10 min (short-lived alerts). | P2 |
| Plan maintenance | Producer team | A Maintenance incident with scope, Start Maintenance, Extend Maintenance, Complete Maintenance and Cancel Maintenance, and the Mute SLO Burn check box. | Before start, show the resources, open alerts and services that the scope covers. Add a calendar view of maintenances. | P3 |
| Change a rule in code | Producer team | Edit the file in the producer repository and merge it. Then use Sync Definitions in Beacon Settings, which loads every source and lists warnings. For a synced SQL rule, the query is read-only in Desk and only Enabled changes. Test Rule runs the rule as it is in Desk, so test a file change after the sync. | After a sync, show for each changed rule its first evaluation result in each region, so the author sees at once that it runs. | P2 |
| Open an incident by hand | Support or responder | Create a Beacon Incident, set severity, scope and Detected By (such as Customer). Use Merge Into Another Incident for a duplicate. | Add a Report a problem button on the workspace that asks for title, severity, region and resource, and shows open incidents that cover that resource first. | P2 |
| Fix notification delivery | Beacon owner | Open the Failed Beacon Notification for the error. For email, check the Email Queue. In Beacon Settings, use Send Test Notification and Resume Notifications. | Show a red banner on Beacon Settings while notifications are paused or the last test failed. | P3 |
| Find who is on call | Anyone | Open Beacon Settings to read the responder list and the override. | Show "On call now" and the escalation order on the Beacon workspace, with Change Primary On-call next to it. | P3 |
Proposed: the incident form for a responder
The responder opens one form and sees what fired, where to start, and the next button. This is a sketch, not a final layout.
host-downn3-fsn: no Atlas sync for 6 min, metald silentRunbookSilencevms-unavailable-on-hostn3-fsn: 14 of 14 VMs not availableRunbookSilenceExample names. The tabs stay as they are today; only the top of Overview changes.
16Gaps and next steps
These flows are missing or weak today. Each item says what exists, the risk and a proposal.
| Gap | Risk | Proposal |
|---|---|---|
| No check reaches a customer site from outside the region. Public networking is measured inside the region. | A provider or DNS cut shows only when a person publishes an incident. | Add an HTTP rule per region for a canary site behind the proxy. |
| Beacon incidents do not reach the Central dashboard. Affected customers get an Unlisted link only when support sends it. | Customers on a broken server may not hear about our incident. | Show published incidents in Central for the affected servers, from the incident scope. |
| The status page lets a visitor follow one incident only. | No warning for a new incident in a customer's region. | Add a follow option for a region or a service. |
| Billing is a declared service with no SLI. | Billing problems show only through rules and published incidents. | Send good and valid counts for invoices and payments. |
The Sites service is measured but hidden. Its file comment says a customer's app fault counts as down, but the query already leaves out app_error. | The status page shows no site availability, for a reason that is no longer true. | Check the Sites SLI for a few weeks, then show it. Fix the comment in the Pilot repository. |
datum-writes-refused says Medium in its header, but its query returns High for a 5xx. | The runbook check and the sync warnings read the header, so the rule looks lower than it is. | Set the header to High in the Cargo repository. |
tls-certificate-expiring returns host rows for metald certificates, but its header lists only the Atlas resource type. Beacon drops those rows. | An expiring metald certificate gives no alert. Atlas then loses access to the host. | Set resource_type: Atlas, Metal Host in the Atlas repository. |
| 39 of 70 rules can call at their highest level. | Too many calls in the first weeks. | Review the noisiest rules in Beacon Health each week after rollout. |
| On-call is one ordered list with a primary override. There is no rotation schedule. | Someone must change the override by hand each shift. | Add a weekly rotation, or sync it from a calendar. |
| Datum and its senders do not retry. | A failed request is a gap. Rules see silence, not an error. | Keep the silence rules. Watch telemetry-dropped and datum-writes-refused. |
| A support ticket is not linked to an incident. | Detected By = Customer depends on a person. | Let support open or join a Beacon incident from the ticket. |
| When Beacon is down, the status page is down too. | No public status during a Beacon outage. (Accepted risk.) | The external heartbeat calls the team. Consider a static fallback page. |
| Traces are stored, but no rule reads them. | Slow requests show only as errors or timeouts. | Add a latency SLI when a service needs one. |
17Glossary
| Region | One Frappe Cloud region, with its own Datum and ClickHouse. |
| Resource | One thing Beacon watches: a host, a VM, a service node, an app such as Atlas, or the region. |
| Resource ID | The name of the sender, written by Datum from the token. |
| Rule | A SQL, HTTP or TLS check that returns failing rows. |
| Alert | One problem on one resource, from start to end. |
| Incident | The record people work on. It holds alerts, updates, calls and the postmortem. |
| Scope | The part of the region an incident covers, such as a host and its VMs. |
| Service | One line on the status page, with an SLI and an SLO. |
| Reporter | A resource that sends SLI events, such as a Pilot VM. |
| Bad reporter | A reporter that sent bad events in the last minute. Used to pair burn and cause alerts. |
| Burn rate | How fast a service uses its error budget. 1 means the budget lasts exactly 30 days. |
| Silence | A time-limited mute for a known problem. |
| Maintenance | Planned work with a start, an end and a scope. Mutes alerts in its scope. |
| Runbook | The steps for a responder. Required for each High or Critical rule. |
| JWT | A signed token. Datum reads the sender's resource ID from it. |
| Error fingerprint | One kind of error: the same exception at the same place, counted together. |
| BMC | The management chip of a physical server. It reports hardware events. |
| eBPF | A small program in the Linux kernel. The IPv6 router uses one to forward traffic. |
| Quorum | The minimum number of storage nodes that must agree before object storage accepts a write. |
| Unchecked resource | A resource with monitoring disabled, or one that is Suspended or Terminated. Beacon drops its rows. |
| Coverage | The share of a day's minutes that Beacon measured. |