The four golden signals from Google's SRE practice—latency, traffic, errors, and saturation—remain the most useful starting point for monitoring any user-facing service. OpenTelemetry has become the standard way to collect the telemetry behind them, independent of which backend you use. Put together, they give on-call engineers a small set of signals they can trust at 3 a.m. This guide covers how to instrument services with OpenTelemetry, process telemetry with the Collector, and turn it into golden-signal dashboards and SLO alerts.
From instrumentation to alerts
- InstrumentSDKs and auto-instrumentation in each service
- CollectorBatch, enrich with k8s metadata, sample, route
- BackendsMetrics, traces, and logs stores
- Golden signalsLatency, traffic, errors, saturation per service
- SLO alertsBurn-rate pages, not threshold noise
The four golden signals
| Signal | What to measure | Typical OpenTelemetry source |
|---|---|---|
| Latency | Time to serve requests—separately for successes and failures, as percentiles | http.server.request.duration histogram |
| Traffic | Demand on the service—requests per second, messages per second | Count from the same duration histogram |
| Errors | Rate of failed requests, explicit (5xx) and implicit (wrong content, timeouts) | Duration histogram filtered by status code; span status |
| Saturation | How full the service is—CPU, memory, queue depth, connection pools | Runtime, container, and custom metrics |
1. Instrument with OpenTelemetry
OpenTelemetry provides APIs, SDKs, and automatic instrumentation for most languages and frameworks. Auto-instrumentation captures HTTP server and client spans and metrics, database calls, and messaging without code changes, which is the fastest way to golden signals. On Kubernetes, the OpenTelemetry Operator can inject auto-instrumentation into pods through an annotation. Add manual spans and attributes later for business operations that matter—checkout, payment authorisation, report generation.
- Set service.name, service.version, and deployment.environment resource attributes on every service; correlation depends on them.
- Follow semantic conventions for attribute names so dashboards and queries work across services and languages.
- Propagate trace context across HTTP, gRPC, and message queues so traces span the whole request.
- Avoid high-cardinality attributes such as user IDs or full URLs on metrics; keep them on spans instead.
2. Run the OpenTelemetry Collector
The Collector receives telemetry from services, processes it, and exports it to one or more backends. Running it as an agent on each node (or as a sidecar) plus a gateway deployment gives you a single place to add Kubernetes metadata, control memory use, sample traces, filter noise, and switch backends without touching application code.
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
memory_limiter:
check_interval: 1s
limit_percentage: 80
spike_limit_percentage: 20
k8sattributes:
extract:
metadata: [k8s.namespace.name, k8s.deployment.name, k8s.pod.name, k8s.node.name]
resource:
attributes:
- key: deployment.environment
value: production
action: upsert
batch: {}
exporters:
otlphttp/traces:
endpoint: https://traces.example.internal
prometheusremotewrite:
endpoint: https://metrics.example.internal/api/v1/write
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, k8sattributes, resource, batch]
exporters: [otlphttp/traces]
metrics:
receivers: [otlp]
processors: [memory_limiter, k8sattributes, resource, batch]
exporters: [prometheusremotewrite]How does your cloud measure up?
Score your setup across foundation, delivery, reliability, security, and cost in 3 minutes—instant results, no email needed.
3. Build golden-signal queries
With metrics in a Prometheus-compatible store, the HTTP server duration histogram gives you three of the four signals. Recording rules precompute them per service so dashboards and alerts stay fast.
groups:
- name: golden-signals
rules:
- record: service:http_requests:rate5m
expr: sum by (service_name) (rate(http_server_request_duration_seconds_count[5m]))
- record: service:http_errors:ratio_rate5m
expr: |
sum by (service_name) (rate(http_server_request_duration_seconds_count{http_response_status_code=~"5.."}[5m]))
/
sum by (service_name) (rate(http_server_request_duration_seconds_count[5m]))
- record: service:http_latency_p99:5m
expr: |
histogram_quantile(0.99,
sum by (service_name, le) (rate(http_server_request_duration_seconds_bucket[5m])))Exact metric and label names depend on the instrumentation version and how your backend translates OpenTelemetry names, so confirm them in your environment. Saturation needs service-specific choices: CPU and memory against limits for containers, queue depth and consumer lag for workers, and connection-pool usage for services that talk to databases.
4. Alert on SLOs, not thresholds
Paging on “p99 latency above 500 ms for five minutes” produces either noise or blind spots depending on the threshold. SLO-based alerting asks a better question: are we consuming our error budget fast enough to miss the objective? Define SLOs per user journey—for example, 99.9% of checkout requests succeed and 99% complete within 800 ms over 30 days—and page when the burn rate over both a long and a short window is high. Lower burn rates create tickets rather than pages.
groups:
- name: checkout-slo
rules:
- alert: CheckoutErrorBudgetFastBurn
expr: |
(
sum(rate(http_server_request_duration_seconds_count{service_name="checkout",http_response_status_code=~"5.."}[1h]))
/ sum(rate(http_server_request_duration_seconds_count{service_name="checkout"}[1h]))
) > (14.4 * 0.001)
and
(
sum(rate(http_server_request_duration_seconds_count{service_name="checkout",http_response_status_code=~"5.."}[5m]))
/ sum(rate(http_server_request_duration_seconds_count{service_name="checkout"}[5m]))
) > (14.4 * 0.001)
labels:
severity: page
annotations:
summary: "Checkout is consuming its monthly error budget about 14x too fast"5. Connect metrics to traces and logs
Golden signals tell you something is wrong; traces and logs tell you where and why. Enable exemplars so latency histograms link to example traces, inject trace and span IDs into structured logs, and make sure your backends let an engineer click from a spike on a dashboard to a slow trace and from there to the logs of that request. This connection is the biggest practical benefit of standardising on OpenTelemetry: one context flows through every signal.
6. Control cost and volume
- Use tail-based sampling in the Collector to keep all error and slow traces while sampling routine successful ones.
- Drop or aggregate high-volume, low-value metrics and debug logs at the Collector instead of paying to store them.
- Keep metric label cardinality bounded; review the series count per service regularly.
- Set retention per signal—short for raw traces, longer for aggregated metrics.
7. Dashboards on-call actually uses
Give every service the same top-row dashboard: request rate, error ratio, latency percentiles, and its main saturation signal, with deploy markers overlaid. Add a second row for dependencies—downstream call latency and errors. Consistency matters more than detail: an engineer covering an unfamiliar service at night should recognise the layout immediately. Link each panel to the relevant runbook.
Rolling out OpenTelemetry across an estate
Start with the Collector, so every service has somewhere consistent to send telemetry, then enable auto-instrumentation service by service, beginning with the user-facing ones. Keep existing agents running in parallel until dashboards and alerts built on OpenTelemetry data are trusted, then retire them. Publish a short internal guide covering resource attributes, naming, and cardinality rules so new services start right.
Treat telemetry configuration as code reviewed alongside the service, so instrumentation never quietly regresses.
Review dashboards and alerts after every major incident: if the golden signals did not show the problem early, adjust what you measure before the next one.
Checklist
- OpenTelemetry auto-instrumentation in every service, with service.name, version, and environment set.
- Trace context propagated across HTTP, gRPC, and messaging.
- Collector agents and gateway with memory limits, Kubernetes metadata, batching, and sampling.
- Recording rules for traffic, error ratio, latency percentiles, and saturation per service.
- SLOs per user journey with multi-window burn-rate alerts.
- Exemplars and trace IDs in logs to link signals together.
- Cardinality and retention controls to manage cost.
- A consistent golden-signal dashboard for every service.
When every service reports the same four signals in the same way, on-call stops being an investigation into how each team built its monitoring. Our Signal & Alert Stack module implements OpenTelemetry, golden-signal dashboards, and SLO alerting as a standard pack.
Key takeaways
- Standardize service identity before expanding instrumentation coverage.
- Golden signals should drive triage dashboards that answer questions in under a minute.
- Sample traces intentionally; more data is not automatically better signal.
FAQ
Metrics, logs, or traces first?
Start with golden signal metrics and structured logs for your critical user journeys, then add traces where dependency latency is unclear.
Why do OpenTelemetry projects stall?
Collectors, sampling, and attribute standards are left undefined. Instrumentation without an operating model becomes expensive noise.