"Setting up observability" usually means "deploy everything at once". It helps more to start with a question: which question does each signal answer — and what you are ready to pay for it. The three signals are three different budgets: money for storage, time for diagnostics, and money for the team that uses all of it.
Who answers what
| Signal | Answers the question | Storage cost | Diagnostics latency |
|---|---|---|---|
| Metrics | What broke? When? How badly? | low | seconds |
| Logs | Why did it break? What exactly was happening? | high | minutes |
| Traces | Where exactly in the service-to-service chain? | medium | minutes |
The practical conclusions from this table:
- Alerting belongs on metrics: cheap, instant, aggregated. Logs for alerting are expensive and noisy.
- Diagnostics lives in logs: keep exactly as much as you are ready to pay for; retention is a money decision, not "let it sit there".
- Traces are for distributed systems. In a monolith they deliver less than conference talks promise: one good stack trace in a log replaces a chain of three spans.
How the signals work together: one incident, step by step
A typical incident — and how the three signals add up to a single picture:
- The metric fires. The service's share of 5xx responses grew from 0.1% to 4% — "what broke" is known instantly:
sum by (service) (rate(http_requests_total{code=~"5.."}[5m]))
/ sum by (service) (rate(http_requests_total[5m]))
- The log explains. Using the same
servicelabel (one shared dictionary!) — record entries about database connection exhaustion: the "why" appears within a minute. - The trace localizes. A span with the same label shows: time is spent acquiring a connection to an external dependency — "where exactly", without browsing through graphs.
If the incident had only one signal: metrics without logs — we hunt for the cause for a long time; logs without metrics — we learn about the incident from a customer; traces without labels — we look for a needle without a hint of which haystack.
The "what to expose" matrix
| Need | Signal | Example |
|---|---|---|
| Customer-facing status page | metric | "The API responds successfully in 99.95% of cases" — an honest aggregated number |
| Support — "what does the customer have?" | log | a line with client_id and errored_payload: a human finds the exact case |
| Developers — "what is slow?" | trace | "a slow span on the payment gateway side" — instead of hand-waving |
Common rollout mistakes
- Everything into logs "for the future". The future never comes — but the storage bill grows. Debug log level is off by default and enabled for a while (sampling for traces follows the same rule).
- Labels are not aligned across signals. The metric knows
service="X", the log —app="X", the trace —service.name="X": a cross-signal search never assembles. Fixed by one shared label dictionary before the pipelines roll out, not after. - Metrics only. The alert fires, the logs from the first window are already gone and diagnostics are impossible: log retention must not be shorter than the "hot" phase of an incident.
- Traces without head-based sampling. Collecting everything is expensive; collecting 1% without an "always keep errors" rule means losing the most valuable part.
What each signal costs
Rough reference points (they depend on the stack, but the order of magnitude holds): for the same volume of a service over a month — metrics take up a few percent of the log volume, traces with 1% sampling — roughly as much as info-level logs. Hence the common practice: metrics — forever and for everyone, logs — with per-channel retention, traces — at 1% with errors always kept.
If an alert fires and you open the logs for the first time in a month — storage is configured, but diagnostics are not ready. Readiness is measured by how many minutes it takes to assemble the "what → why → where" picture.
OpenTelemetry: one agent for all three signals
The ongoing evolution: separate agents per signal (Prometheus, FluentBit/Logstash, Jaeger-agent) are slowly giving way to a single OTel collector. The benefit is not "fewer components for beauty" but one shared place for labels and sampling decisions:
receivers:
otlp: {protocols: {grpc: {endpoint: "0.0.0.0:4317"}}}
prometheus:
config: {scrape_configs: [...]}
processors:
batch: {}
attributes/labels: # the very "shared dictionary" from practice
actions: [{key: env, from_attribute: deployment.environment, action: upsert}]
exporters:
prometheusremotewrite: {endpoint: "http://vm:8428/api/v1/write"}
otlp/tempo: {endpoint: "tempo:4317"}
# logs — via the loki/elastic exporter depending on the stack
An important caveat: OTel is not a silver bullet and not (always) a replacement for a specialized stack. The Prometheus ecosystem remains stronger for metrics (recording rules, alerting), and specialized log stores — for storing logs. But OTel solves exactly the problem that cross-signal searches suffer from: the same origin and label dictionary for all three signals.