Scaling without observability is guessing with confidence.
Most teams add telemetry after something goes wrong. An outage happens, nobody can explain it quickly, and a dashboard project begins. By then the system is larger, the data is inconsistent across services, and every improvement is a retrofit. In our experience, the cheapest time to design observability is the first architecture review, when it costs a few decisions instead of a few quarters.
Start with questions, not tools
Before choosing a vendor or a collector, write down the questions you need to answer during an incident. We use a short list with every team:
- What does healthy look like for this service, from the user's point of view?
- Who gets paged, and what do they need to see in the first five minutes?
- How do we tell a problem in this service from a problem in a dependency?
- What changed recently, and can we correlate it with the symptom?
Every dashboard, metric, and log line should serve one of those questions. Telemetry collected without a question is cost without value, and it tends to be the telemetry that drives the bill.
Define service levels users would recognize
Service level indicators should describe what users experience: requests that succeed, requests that are fast enough, jobs that finish on time. CPU usage is not an SLI; it is a clue.
For most request-driven services we start with two SLIs:
- Availability: the share of valid requests that return a non-error response.
- Latency: the share of requests served faster than a threshold that matters to users, for example 300 milliseconds for an interactive API.
Then set a service level objective over a rolling window. A 99.9% objective over 28 days is a reasonable default for many business services. It allows roughly 40 minutes of total unavailability in that window. That remaining allowance is the error budget, and it is the most useful number in reliability engineering, because it turns "should we ship or stabilize?" into a decision with data behind it.
An SLO is a product decision about how reliable the service needs to be, not an engineering aspiration to be perfect.
Alert on symptoms, and on burn rate
The mistake we see most often is paging on causes: high CPU, a full queue, a restarted pod. These fire constantly, rarely correlate with user pain, and teach people to ignore alerts.
Page on symptoms instead, and specifically on how fast the error budget is burning. A multiwindow, multi-burn-rate alert fires quickly for severe problems and slowly for gradual ones, and it stays quiet for brief blips.
groups:
- name: checkout-slo
rules:
- alert: CheckoutErrorBudgetFastBurn
expr: |
(
sum(rate(http_requests_total{service="checkout",code=~"5.."}[1h]))
/ sum(rate(http_requests_total{service="checkout"}[1h]))
) > (14.4 * 0.001)
and
(
sum(rate(http_requests_total{service="checkout",code=~"5.."}[5m]))
/ sum(rate(http_requests_total{service="checkout"}[5m]))
) > (14.4 * 0.001)
labels:
severity: page
annotations:
summary: "Checkout is burning its 28-day error budget roughly 14x too fast"The long window confirms the problem is real; the short window confirms it is still happening. Pair this fast-burn page with a slower-burn ticket-level alert and you cover most of what matters with a handful of rules.
Put instrumentation in the service template
If instrumentation depends on each team remembering to add it, coverage will be uneven and inconsistent. Put it in the template every new service starts from:
- OpenTelemetry SDK initialized with service name, version, and environment as resource attributes.
- Automatic tracing for inbound HTTP, outbound HTTP, database, and messaging calls.
- Structured JSON logs that include the trace ID and span ID on every line.
- RED metrics (rate, errors, duration) for every endpoint, emitted by default.
- A starter dashboard and the two SLOs above, created when the service is created.
Trace and log correlation is the single most valuable default. When a trace ID appears in every log line, an engineer can jump from a slow request to the exact logs for that request in seconds, instead of searching by timestamp and hoping.
Be deliberate about cardinality and cost
Observability bills grow faster than traffic when nobody owns them. The usual culprits are high-cardinality metric labels (user IDs, request IDs, full URLs as labels), verbose debug logs left on in production, and retaining everything for as long as the most demanding use case needs.
Practical rules that hold up well:
- Never put unbounded values in metric labels. Put them in traces and logs, which are built for that.
- Sample traces intelligently: keep all errors and slow requests, and a small percentage of the rest.
- Set retention by purpose. Debug-level data rarely needs more than a week or two; audit data follows your compliance requirements.
- Give every service a telemetry budget and show teams their own usage. Visibility changes behavior faster than policy.
Build the first-five-minutes view
For every service, keep one dashboard designed for the on-call engineer who has just been paged. It should answer, top to bottom:
- Are users affected right now, and how badly? (SLI status and error budget burn)
- Is it this service or a dependency? (Error and latency by downstream call)
- What changed? (Deploy markers, feature flag changes, config changes on the same timeline)
- Where should I look next? (Links to relevant traces, logs, and the runbook)
A dashboard with forty panels is a research tool, not an incident tool. Keep the incident view small and ruthless.
Where to start
If your system is already running without much of this, you do not need a big-bang program. A practical first month looks like this:
- Pick the two or three user journeys that matter most to revenue or trust.
- Define availability and latency SLIs for the services behind them, and publish a 28-day SLO for each.
- Replace cause-based pages for those services with burn-rate alerts, and delete alerts nobody acts on.
- Add trace IDs to logs and deploy markers to dashboards.
- Update the service template so every new service starts with all of the above.
Observability is not a dashboard project. It is a design decision about which questions your system must always be able to answer.