DevOps & Kubernetes (50 Qs)•Part 5: Infrastructure as Code, SRE Observability & Production Troubleshooting (43 - 50)
Grafana Dashboard Engineering & Alert Fatigue Prevention: The Four Golden Signals and Alertmanager tuning.
Human-Centered Monitoring
The #1 failure of monitoring systems is Alert Fatigue: on-call engineers getting paged at 3:00 AM for non-actionable, self-resolving threshold blips, leading to missed real outages.
java
The Four Golden Signals (Google SRE):
1. LATENCY: Time taken to service a request (p50, p95, p99).
2. TRAFFIC: Demand placed on the system (QPS, concurrent connections).
3. ERRORS: Rate of requests that fail explicitly (HTTP 500s) or implicitly.
4. SATURATION: How "full" the service is (Memory %, CPU CFS throttle %, DB connection pool).
Alertmanager Anti-Fatigue Architecture
- Grouping: Collapses 50 separate container crash alerts during a network partition into a single Slack/PagerDuty notification.
yaml
route:
group_by: ['alertname', 'cluster', 'service']
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
- Inhibition: If a root-cause alert fires (e.g.
NodeNetworkDown), automatically mute all downstream alerts (PodCrashing,EndpointUnreachable) caused by that node outage. - Actionability Rule: If an alert does not have a documented Runbook URL and does not require an immediate human action, it must not page someone. Demote it to a daily dashboard or ticket.