Pcornel
Observability

Observability Troubleshooting

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

Back to the Topic

Answer

Observability troubleshooting is debugging the telemetry itself: missing data, wrong values, gaps, high cardinality, dropped logs and broken traces.

Remember

Follow the data path: source emits → agent collects → pipeline forwards → backend stores → query. Check each hop's own metrics and logs.

First checks

  • curl -s http://<target>:<port>/metrics | head — 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

emit → collect → forward → store → query

Where it usually breaks

The dangerous shortcuts are assuming “no data” means healthy/zero, increasing retention or cardinality limits without finding the producer, restarting collectors before reading queues/errors, and changing alerts when the actual problem is a broken source or query.

Observability Troubleshooting verification boundary matrix

BoundaryInspectHealthy interpretationDo not infer
IntentMissing telemetryIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeStale metrics / Scrape/collector failureOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateHigh cardinalityIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeTimestamp/clock skewThe 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=6111

Confirmation

Confirm action

Continue?