What is the difference between a metric, a KPI, a target and a guardrail?
Answer
A metric is any measured value. A KPI is a metric explicitly tied to an objective and a decision, chosen deliberately rather than tracked by default. A target is the specific threshold a KPI is expected to reach or hold, and it needs a baseline, scope and observation window to mean anything. A guardrail is a second metric that limits gaming of the first, for example capping merge-gate runtime while requiring coverage not to drop. Not every metric deserves KPI status, and a target copied from another team without its context is close to meaningless.
Strong answer includes
- ties KPI status to an objective and a decision, not just visibility
- explains why a target needs baseline, scope and window
- introduces a guardrail as protection against gaming
Practical example
A team measures dozens of metrics in CI but names only three as KPIs: change fail rate, flaky test rate and cycle time. Flaky test rate has a target of staying under its rolling baseline, guarded by a second metric, quarantine backlog age, so nobody hits the target by silently disabling failing tests instead of fixing them.