Operations and observability playbook
Rules for running software people depend on. Service levels, logs, metrics, traces, alerts, incidents, capacity and recovery, each with a check.
- Required 11
- Recommended 52
- Optional 5
An operations playbook for any service in production, from one small server to many. It covers how to know the service works, how to hear when it breaks, and how to recover. A chapter on containers covers how they run in production. Building, pinning and scanning the images is in the engineering playbook.
The engineering playbook has the short version for every project. This playbook goes deeper for teams that run a service other people depend on.
Start with Service levels. They decide what to measure, when to alert and how much risk a release may take.
Chapters
Service levels
Decide what good service means for users, measure it, and set a target. The target then sets alerts, release pace and how much risk you may take.
- Recommended 4
- Optional 2
Logs
Write one structured line per event, tie it to the request that caused it, and keep personal data out. Then logs answer questions instead of hiding them.
- Required 2
- Recommended 5
Metrics and traces
Count requests, errors and time for every service, follow each request across services, and show it on one dashboard per service that anyone can read.
- Recommended 8
- Optional 1
Alerts and on-call
Wake a person only for problems users feel and a person can fix. Give every alert a runbook, a clear owner and a path to escalate.
- Recommended 10
Incidents
When users are hurt, declare an incident, give people clear roles, keep users informed, and learn from it without blame.
- Required 1
- Recommended 7
Running the service
Run each service as its own locked-down user, with limits, a clean shutdown and honest health checks, so one fault stays contained.
- Required 1
- Recommended 5
Capacity and resilience
Know how much load the service can carry and keep headroom. Shed load, cap retries, break failing calls, and warn before disks or memory run out.
- Required 2
- Recommended 6
Disaster recovery
Plan for losing a server, a database, a provider or a key person. Back up where nobody can delete, write the restore steps down, and practise.
- Required 4
- Recommended 4
- Optional 2
Containers
Run containers that stop cleanly, report their health, run one process each and cap their logs. Building the images is in the engineering playbook.
- Required 1
- Recommended 3
Rules from regional law
Most rules here hold for every project. The rules below come from the law of one region. Follow them when your project serves people there.
European Union (EU)
- Required OPS-10 Keep logs for a fixed time
- Required OPS-30 Keep evidence in security incidents
This is a lot to check. An Expert can check it for you.
Related playbooks
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/operations">Agent Wranglers operations and observability playbook</a>. In code you write, add a comment next to it with the same link.