Scenario
Dashboards are all green (Prometheus, Grafana, CloudWatch, Pingdom, etc.) yet tickets and social media are on fire.
The problem is not that the metrics are wrong, it is that the metrics we are collecting do not represent the user experience.
Below is a repeatable playbook that I have used in AWS-centric environments, but the same ideas apply to GCP, Azure or on-prem.
────────────────────────────────────────
- Reproduce the symptom as a user
────────────────────────────────────────
Tool: Browser, mobile app, curl, Postman, k6, Playwright.
Commands:
curl -w "@curl-format.txt" -o /dev/null -s https://app.acme.io/api/checkout
(curl-format.txt contains time_namelookup, time_connect, time_total, http_code, etc.)
Goal: turn “it’s slow” into a reproducible, measurable latency number or error code.
────────────────────────────────────────
2. Compare synthetic vs. real traffic
────────────────────────────────────────
Tools:
• Synthetic probes: Pingdom, Catchpoint, Blackbox exporter, Datadog Synthetics.
• Real traffic: RUM (Datadog RUM, New Relic Browser, CloudWatch RUM), server-side access logs.
Checklist:
- Are the synthetic probes hitting the same CDN PoP, region, feature flags, auth path as real users?
- Is the probe frequency high enough to catch 1-minute spikes?
- Are we only probing /health instead of /checkout?
Fix: Add probes that mirror critical user journeys (login → search → add-to-cart → checkout) from multiple geos.
────────────────────────────────────────
3. Look at the edges, not the middle
────────────────────────────────────────
Blind spots often hide in:
a. CDN / Edge
• CloudFront, Cloudflare, Akamai logs → 5xx/4xx per PoP, cache-hit ratio.
• Command:
aws logs filter-log-events \ --log-group-name /aws/cloudfront/production \ --filter-pattern '[time, x-edge-location, sc-status=5*]'
b. DNS / TLS
• Check DNS resolution time, certificate expiry, SNI mismatch.
• Tool: dig, openssl s_client, DNSPerf.
c. Client-side errors
• Browser console, CSP violations, JavaScript exceptions.
• Tool: Sentry, Rollbar, Datadog RUM JS errors.
d. Mobile apps
• Crashes, ANR, network errors.
• Tool: Firebase Crashlytics, Bugsnag.
────────────────────────────────────────
4. Turn high-cardinality logs into metrics
────────────────────────────────────────
Tool: Loki, Elasticsearch, CloudWatch Logs Insights, Honeycomb.
Query example (CloudWatch):
fields @timestamp, status, request_id, edge_location
| filter status >= 400
| stats count() by edge_location, uri, status
Create a quick metric filter and alarm on 4xx/5xx > 0.5 % per edge_location.
────────────────────────────────────────
5. Distributed tracing to find the “missing” latency
────────────────────────────────────────
Tool: OpenTelemetry → Jaeger / Tempo / X-Ray.
Steps:
- Inject trace-id/span-id into logs (correlation).
- Turn on 100 % sampling for 5 min on the affected endpoint.
- Look for:
• Async fan-out that never returns (orphaned spans).
• Retries that succeed but add 2 s tail latency.
• Downstream service returning 200 in 20 ms but with a 1.8 s DNS lookup.
Command (Jaeger):
jaeger-query trace 3fa8c… | jq '.spans[] | select(.duration > 1000000)'
────────────────────────────────────────
6. Canary a new metric/alarm before closing the loop
────────────────────────────────────────
Once the blind spot is identified (e.g., “cache-miss ratio > 5 % in us-east-1 causes 2 s TTFB”), create:
• SLI: 95th percentile TTFB < 500 ms for /api/checkout.
• SLO: 99.9 % of requests in 28-day window.
• Alert: PromQL
histogram_quantile(0.95, rate(http_request_duration_seconds_bucket{job="checkout"}[5m])) > 0.5
Deploy the alert to a staging environment first, then promote to prod.
────────────────────────────────────────
7. Post-mortem & permanent fixes
────────────────────────────────────────
• Add RUM beacons to every page.
• Add CDN Real-Time Logs to S3 + Athena for ad-hoc queries.
• Add client-side synthetic journeys in Playwright running every 2 min from 5 regions.
• Add OpenTelemetry instrumentation to the two services that were missing it.
• Update runbooks: “If customers complain but dashboards are green, start with RUM and traces, not server metrics.”
────────────────────────────────────────
Quick reference cheat-sheet
────────────────────────────────────────
Green dashboards + angry users →
- Reproduce → 2. Compare synthetic vs. real → 3. Check edges (CDN, DNS, TLS, client) → 4. High-card logs → 5. Distributed tracing → 6. New SLI/SLO → 7. Post-mortem.
Tools: curl, k6, Playwright, CloudWatch Logs Insights, Jaeger, OpenTelemetry, Datadog RUM, CloudFront Real-Time Logs, Prometheus, Grafana.