Pcornel
Automation · Logging & Observability

Failure Rate

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

Back to the Topic

Answer

Failure Rate measures how often automation attempts fail a defined execution or acceptance criterion and should preserve failure class, scope and retry semantics so rising errors are actionable rather than one undifferentiated red percentage.

Remember

  • Non-zero exit ≠ only kind of failure.
  • Retry recovery ≠ failure never happened.
  • Low failure rate ≠ low blast radius.
  • Failure count increase ≠ failure rate increase if volume changed.

First checks

  • Failure rate and top failure reasons — analysis
  • Failure categorisation (infra, code, data) — root causes
  • Flaky job identification — reliability

Verify in this order

failures → categories → fixes

Where it usually breaks

Failure rate proves measured failures under a chosen oracle and population; it does not reveal root cause, impact or hidden false-success cases without correlated evidence.

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Failure Rate observability proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Identity / scopeImmutable source plus run/job/attempt and exact target IDs are explicitFloating source, shared labels or ambiguous target scope make events hard to attribute
Telemetry pathStructured logs, metrics and traces are exported, timestamped, retained and correlatedConsole-only output, missing data or broken correlation silently creates blind spots
Effective outcomeJob status is paired with target read-back and workload/service acceptanceGreen execution state substitutes for effective target or service verification
Monitoring / closureRates, latency, freshness and alerts use explicit windows/objectives and tested recoveryUntested alerts, stale dashboards or one successful sample are treated as healthy system proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5968

Confirmation

Confirm action

Continue?