Three pillars (+1)
| Signal | Answers | Tools |
|---|---|---|
| Metrics | is something wrong? trends | CloudWatch, Prometheus, Dynatrace |
| Logs | what exactly happened? | Splunk, CloudWatch Logs, ELK |
| Traces | where in the request path? | X-Ray, Jaeger, Dynatrace PurePaths |
| Profiles | which code is hot? | pprof, Dynatrace, Pyroscope |
Correlate them with a shared trace ID in logs.
Methods
- Golden signals (Google SRE): latency, traffic, errors, saturation.
- RED (services): Rate, Errors, Duration.
- USE (resources): Utilization, Saturation, Errors.
SLI / SLO / SLA
- SLI: measured indicator, e.g. % of requests < 300 ms and non-5xx.
- SLO: target for the SLI over a window, e.g. 99.9% over 30 days.
- SLA: contractual promise with penalties (looser than SLO).
- Error budget = 100% − SLO (99.9% → 43 min/month). Budget spent → freeze risky releases, focus on reliability.
Alerting
- Alert on symptoms (SLO burn), not every cause.
- Burn-rate alerts: page if burning 14.4x budget over 1 h (and 5 min); ticket for slow burns.
- Use percentiles (p95/p99), not averages.
- Every page must be actionable, with a runbook link.
- Reduce noise: dedupe, group, route by severity.
Incident response
- Detect (alert) → acknowledge → declare severity, incident commander.
- Mitigate first (rollback, flag off, scale up, failover), root-cause later.
- Communicate on a cadence (status page, stakeholders).
- Blameless postmortem: timeline, impact, contributing factors, action items.
Metrics: MTTD (detect), MTTA (acknowledge), MTTR (restore).
Dynatrace
- OneAgent: single agent auto-instruments hosts, processes, containers (code-level).
- Smartscape: live topology map of dependencies (hosts → processes → services → apps).
- PurePath: end-to-end distributed traces with code-level detail.
- Davis AI: automatic baselining, anomaly detection, root-cause problems.
- RUM (real user monitoring) and synthetic monitors for user experience.
- DQL (Grail) to query logs/metrics/events:
fetch logs
| filter loglevel == "ERROR" and k8s.namespace.name == "checkout"
| summarize count(), by:{service.name}
| sort `count()` desc- Ingests OpenTelemetry traces/metrics/logs natively.
- Release monitoring: tag deployments (version events) to compare before/after.
Logging best practices
- Structured JSON logs with
timestamp, level, service, trace_id, message. - Log levels used consistently; no PII/secrets.
- Sample high-volume debug logs; keep error logs.
- Retention tiers: hot (days) → archive (S3).
Observability for releases
- Deployment markers on dashboards.
- Compare canary vs baseline (error rate, latency).
- Track DORA: deploy frequency, lead time, CFR, MTTR.
- Auto-rollback triggers from SLO alarms.