Events
Cheat sheet · https://pcornel.dk/topic.php?topic=6102
Answer
Events are discrete records of something that happened in the system — deployments, config changes, scaling, failovers, Kubernetes events — used to explain changes in metrics.
Remember
Most incidents follow a change. Record deploys and config changes with timestamps and show them as annotations on dashboards.
First checks
kubectl get events -A --sort-by=.lastTimestamp— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
change happens → event recorded → shown on timeline → correlated with symptoms
Where it usually breaks
Failures include duplicate delivery, out-of-order processing, lost offsets, confusing collection time with occurrence time, assuming an event means the resulting state persisted and colliding numeric IDs from different providers.
Events verification boundary matrix
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Operational events vs logs | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | State-change events / Event streams | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Provider/source identity | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Ordering and timestamp boundaries | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6102