Skip to main content

Workload health KPIs

Infrastructure metrics tell you what the machine is doing. Workload health KPIs tell you whether the service is doing its job. A service can be at 20% CPU and failing.

The standard. A small set of metrics per component that show whether the workload is healthy, with thresholds, owners and runbooks that make them actionable.

Three components​

Definition
A small set of metrics per component, tied to what the component must do for the service to work. Each has an owner, a baseline and a target.
Collection
CloudWatch, X-Ray, structured application logs, and third-party telemetry where the customer already has it.
Action
Thresholds that raise an alert, an owner to receive it, and a runbook that says what to do.

Selecting KPIs​

A KPI is well formed when it satisfies all of these:

  1. It maps to a user or business outcome — not to a resource.
  2. It has a baseline measured before the engagement's changes.
  3. It has a target agreed with the customer.
  4. It is measurable continuously, from telemetry rather than surveys.
  5. Someone owns it and can act when it moves.
  6. It is stable — not so noisy that it triggers on normal variation.

Common failure modes of KPI selection​

Anti-patternWhy it fails
Dashboards with 60 metrics and no owner for anyNobody knows which one matters
Alerting on every metricAlert fatigue; the real signal is ignored
KPIs that measure activity, not outcome"Number of deployments" rises while reliability falls
Targets with no baselineNo way to know whether anything improved
Customer-facing KPIs owned only by engineeringThe business does not see or trust them

KPI catalogue by component​

Web / edge​

KPIDefinitionTarget pattern
AvailabilitySuccessful responses / total requests≥ 99.9%
p95 response time95th percentile end-to-end latencyPer page or endpoint
Error rate5xx / total requests< 0.5%
Cache hit rateCache hits / requestsPer workload, usually > 80%

Application​

KPIDefinitionTarget pattern
Request success rateSuccessful business transactions / attempts≥ 99.5%
p99 latencyTail latency on the critical pathPer endpoint
SaturationQueue depth, thread pool, connection pool utilisationBelow a tested ceiling
ThroughputRequests or jobs per minute at peakMeets forecast

Data​

KPIDefinitionTarget pattern
Query latencyp95 for the dominant query patternPer query class
Connection saturationActive / max connections< 80%
Replica lagSeconds behind primary< 5s for read paths
Failed transactionsRollbacks, deadlocks, timeoutsNear zero

Async / background​

KPIDefinitionTarget pattern
Queue ageAge of the oldest message< processing SLA
DLQ depthMessages that failed all retries0
Consumer lagRecords behind head< one processing window
Job success rateCompleted / attempted≥ 99%

Business​

Business KPIs are what makes the technical ones meaningful to the customer:

  • Orders completed per hour, compared with the same period last week.
  • Payment success rate by provider.
  • Sign-ups completed versus started.
  • Exam submissions accepted versus attempted.
  • Report generation completed within the expected window.

These are the metrics that belong on the leadership dashboard. They also catch failures that infrastructure metrics miss — a dependency returning 200 with wrong data will not raise an error rate.

Logging for detection​

Structured logs make KPIs computable and incidents diagnosable.

{
"timestamp": "2026-11-06T10:14:22.481Z",
"level": "error",
"service": "checkout",
"environment": "prod",
"requestId": "b1c2d3e4",
"traceId": "1-6789abcd-0123456789abcdef",
"message": "payment capture failed",
"provider": "gateway-a",
"errorCode": "TIMEOUT",
"durationMs": 3021,
"attempt": 2
}
RequirementReason
Structured JSONQueryable without regex
Correlation idTies a request to its log lines
Trace idTies a log line to a trace
LevelFilter for errors without scanning everything
Domain fieldsMakes the log useful for business KPIs too
No secrets or personal dataCompliance and cost

Thresholds​

MethodUse when
Static thresholdThe target is contractual or well understood
Baseline-relativeThe workload is seasonal and a static number would be wrong
Anomaly detectionThe metric has a stable pattern and sudden deviation is the signal
CompositeSeveral indicators together indicate a real incident

Thresholds are reviewed after every incident: was the alarm early enough, and did it point at the right thing?

The KPI review cadence​

CadenceParticipantsOutput
DailyOn-callAlert review; anything unexplained becomes a ticket
WeeklyDelivery teamKPI trend against target; capacity and waste items
MonthlyCustomer and delivery leadKPI report, incidents, improvement actions
QuarterlySponsor and delivery leadTarget review; are these still the right KPIs?

Evidence​

  • KPI definition document per component, with owner and target.
  • Dashboard showing each KPI against its baseline.
  • Alarm configuration with thresholds and routing.
  • Log schema and a sample query used in an investigation.
  • A worked example of an operational event detected from a KPI and resolved via its runbook.