Pcornel
Observability

Events

Cheat sheet · https://pcornel.dk/topic.php?topic=6102

Back to the Topic

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 topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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

BoundaryInspectHealthy interpretationDo not infer
IntentOperational events vs logsIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeState-change events / Event streamsOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateProvider/source identityIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeOrdering and timestamp boundariesThe original bounded check succeeds in the same time windowProduction 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

Confirmation

Confirm action

Continue?