Golden Signals deep dive: Latency, Traffic, Errors, Saturation. Order API tier with connection pool, Postgres + Kafka backends, Prometheus + Alertmanager + Grafana observability stack, on-call engineer. Three scenarios: latency p50 vs p99 spike with histogram_quantile PromQL, traffic drop + 5xx cascade correlation, saturation 80% predicting failure 30min before pool exhaustion. Includes ADR-001 on percentiles vs averages.
Google’s four golden signals are latency, traffic, errors, and saturation. They form a compact service-monitoring checklist, not a proof that a system is healthy whenever four widgets are green. Each signal needs a workload unit, population, dimensions, window, data-quality policy, and a user-impact interpretation.
Latency is a distribution and successful and failed requests may need separate views. Traffic describes demand in the system’s own units. Errors include explicit failures, policy failures, and incorrect or too-slow responses. Saturation is proximity to a limiting resource and can appear as queueing or constrained capacity before nominal utilization reaches 100%.
histogram_quantile(0.99, sum by (le, route) (rate(http_request_duration_seconds_bucket[5m]))); the estimate depends on bucket placement and interpolation.le in the aggregation for classic histograms; the result is an estimate, not an exact order statistic.Latency distribution with valid PromQL. Histogram buckets describe the measured population; p99 is estimated from correctly aggregated bucket rates rather than inferred from an average.
Traffic and errors retain context. Demand and failure rates use explicit units and eligible populations instead of a single global request count.
Saturation before visible failure. Connection-pool waiters and database pressure appear before the service exhausts capacity.
Safe response to downstream saturation. The controller limits demand and tests the bottleneck rather than blindly adding callers to an overloaded database.
Введите числа или выберите пресет