Video in progress
What observability "production readiness" requirements do you set before a new service goes to prod?
If the service goes down or slows down, the on-call engineer must know before the users do and be able to find the cause within 15 minutes. That means: RED metrics and an SLO, alerts with an owner and a runbook, JSON logs with traceId, trace propagation, correct health probes and a dashboard. Most of these should come automatically through a starter and templates.
📖 Answer
I check this not as a checklist but with the question "what happens if this service falls over at three in the morning?" But a written list is still needed, otherwise every team interprets it in its own way:
Signals:
service.name,service.versionandenvon every metric, log and trace;http.server.requestswith a histogram, client metrics for the main downstreams, pools (Hikari, executors) and the JVM;- JSON logs with
traceIdin MDC; it has been reviewed that sensitive data is not logged; - trace propagation on the way in and out has been verified in staging (one request, one trace).
SLOs and alerts:
- at least one availability and one latency SLO, agreed with the product owner;
- burn rate alerts, each with a runbook link and correct routing (the owner is in the service catalog);
- an alert for "the metric stopped arriving".
Operational state:
- liveness checks only the application itself, readiness checks readiness to take traffic; graceful shutdown is configured;
- the dashboard comes from a template: RED, downstreams, resources, deploy annotations.
Proof:
- an artificial failure in staging: slow down the DB or turn off a downstream, then see whether the alert came, whether the dashboard showed the cause, and whether the runbook helped.
The last step is the most valuable. On one project every box was ticked, but an artificial failure showed that the alert went to another team's channel.
If every service does all this by hand, quality will vary. So a large part of the list is handled by an internal starter, a Helm chart and dashboard/alert templates, and the team is left with only the SLO numbers and the content of the runbook. The list itself can be made a gate in the deploy pipeline, but I first introduce it as advice and make it mandatory later.
Sign up to mark studied questions and save your progress.