Skip to content

docs(monitoring): add the SRE service spec - #5488

Merged
dan-petty merged 2 commits into
mainfrom
docs/5445-sre-service-spec
Nov 13, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/5445-sre-service-spec

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This adds docs/SRE.md, the SRE service spec, for the owner to merge. The spec gives each service a tier and an SLO. It sets 5 SLOs with 28-day error budgets and Sloth burn-rate alerts, and at most 2 pages a day. It gives the incident triggers with a start, one record and an end. It also sets the postmortem, backup and capacity targets, and the rules SRE1 to SRE9. The current state was measured on 2026-11-13, and each gap has an open issue.

k8s/README.md now says that a person pushes a new Secret before the merge. docs/DESIGN.md gets chart rule C15 and the 28-day page lines in C12.

Closes #5445

Change: openspec/changes/archive/2026-11-13-5445-add-the-sre-service-spec/

Add docs/SRE.md, the SRE service spec in the form of docs/DESIGN.md:
the service catalog, the SLOs and error budgets, the burn-rate alerts,
the notifications, the incidents and postmortems, the change safety,
the backups, the capacity, the runbooks, the rules SRE1 to SRE9 and the
gap table. The current state was measured on 2026-11-13, and each
number names its query. Each gap has an open issue.

k8s/README.md (Cluster Secrets) now owns the order of a new Secret: a
person pushes it before the merge of the manifest that reads it.
docs/DESIGN.md gets chart rule C15 (one unit in each panel, the error
ratio first in each section, then the golden signals), and C12 (c)
gives the page lines of a 28-day and a 30-day window.

Register the spec in the docs site and the docs index, and link it from
DESIGN.md, CLUSTER.md and k8s/README.md.

Plans #5445
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Questions for the owner before the merge:

  1. These targets are standard SRE picks, not owner decisions. Please confirm or change them: rule SRE8 (the error budget policy of the SRE workbook), at most 2 pages a day, a backup off the node every 24 hours with a monthly restore test, the 28-day window for each SLO, and the capacity target for the loss of one worker node.
  2. Incident trigger 1 keeps your value 14.4x, the page rate of a 30-day window. The 28-day page rate of Sloth is 13.44x. Keep 14.4x, or change it to 13.44x?
  3. SLO 5 (99.9 %) is the default of services.toml, not your decision. Please set it, or keep it.
  4. feat(roadmap): add incident and supervise jobs that read the SLOs #5477 holds the contract of the incident job and the supervise job. Please confirm it.

Merge order: #5443 and #5444 add the sibling specs. They change the same lines of .nav.yml and docs/index.md. This spec names them by issue number, and the last of the 3 pull requests changes the numbers to links.

Checks run on the branch:

  • uv run devops docs check: pass
  • uv run devops ci --check --only lint,format,docs,openspec,domain: all pass
  • uv run devops ci test tests/docs tests/design tests/prometheus/test_k8s_monitoring_alerting.py tests/prometheus/test_k8s_monitoring_dashboards.py tests/invariants/test_k8s_manifests.py tests/invariants/test_agents_md.py tests/grafana/test_service_dashboard.py: 381 passed
  • uv run --group docs devops docs site build --strict: 112 pages, no issues

Gaps filed as sub-issues of #5445: #5471, #5473, #5475, #5477, #5480. Comments on the open issues of the other gaps: #4560, dan-petty/homelab#356, #4742, #4714, #4709, #3655.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 17:31
@dan-petty
dan-petty merged commit 2b79f35 into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the docs/5445-sre-service-spec branch November 13, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(sre): add the SRE service spec

1 participant