A deploy that ships a 200ms regression to p95 latency on a checkout flow is — in revenue terms — usually the most expensive event of the quarter. It is also the kind of regression that takes weeks to find without the right instrumentation, because the graph just slowly trends worse and nobody connects it to the merge from three Tuesdays ago. The fix is mechanical: every deploy needs to leave a mark on every relevant performance graph.
What’s happening
Most monitoring tools support “annotations” or “events” — overlay markers placed on a time series at the moment something happened. A deploy that emits an annotation to the metrics platform produces a vertical line on every latency, error rate, and throughput graph, on the timestamp the new code went live. The eye picks up “the trend changes at the line” much faster than any threshold alert ever will.
The pattern needs three things to be useful: every deploy emits an annotation (no exceptions, including hotfixes); the annotation includes enough metadata to identify what shipped (commit SHA, deploy environment, who initiated); and the dashboards on-call actually look at have annotations visible by default. Skipping any one of the three breaks the diagnosis loop.
How to verify
Most CI/CD tools have a built-in step for this. For a generic example posting to a metrics API at the end of a deploy job:
curl -X POST "$METRICS_API/events" \
-H "Authorization: Bearer $TOKEN" \
-d '{
"title": "deploy: api-service",
"text": "sha='"$CI_COMMIT_SHORT_SHA"' env=prod by='"$CI_COMMIT_AUTHOR"'",
"tags": ["service:api", "env:prod", "event:deploy"]
}'
Then, on the latency, error rate, and throughput dashboards for the deployed service, turn on the annotations layer filtered to event:deploy. After the next two or three deploys, the dashboards will show vertical lines you can correlate visually.
For automated detection rather than visual inspection, the same tag enables differential queries: average p95 in the 30 minutes after each deploy versus the 30 minutes before. If post-deploy p95 is more than one standard deviation worse than pre-deploy across multiple recent deploys, you have a trend, not a one-off. We typically set this up as a daily report rather than a real-time alert — it’s a “review this morning” signal, not a 3am page.
The fix
Emit deploy annotations from CI for every environment (prod, staging, canary if you have one). Include commit SHA, environment, and author. Turn annotations on as a default layer on the service’s main dashboards. Add a weekly automated review of “post-deploy delta” for the top three latency metrics. Train on-call to look for the annotation line first when investigating a graph that went sideways.
Stack Harbor’s Monitoring & Support practice wires deploy annotations into client monitoring stacks as part of standard onboarding. If a recent slow trend on your dashboard has no obvious cause, the deploy timeline is usually where we start — see how this fits into environment management.