Monitoring glossary
What is a canary deployment?
A canary deployment sends a new version to a small share of traffic first, compares it with the current version, and only then rolls it out to everyone.
3 min read9 sectionsUpdated
On this page
| Strategy | How it works | Risk | Cost |
|---|---|---|---|
| All at once | Replace every instance | Everyone hit by a bad release | Lowest |
| Rolling | Replace instances in batches | Grows as the rollout proceeds | Low |
| Blue-green | Switch all traffic to a parallel environment | All users at switch time; fast rollback | Double capacity briefly |
| Canary | Small share first, then expand | Only the canary share | Needs traffic splitting and good metrics |
What decides promotion
Compare the canary with the stable version over the same period:
- Error rate: canary noticeably above baseline → roll back.
- p95 and p99 latency per key route.
- Business signals: checkout success, sign-ups.
- Saturation: memory growth that suggests a leak.
Wait long enough to see real traffic, often 15 to 60 minutes, and longer for memory leaks.
Monitoring makes canaries possible
Set service.version on your telemetry. In VitalRix, versions seen in telemetry appear on charts automatically, and with APM Enterprise each new version becomes a deployment marker with before and after comparisons. Exceptions on spans become grouped error issues with the versions they were seen in, so a new error type in the canary stands out.
| Step | Traffic to new version | Wait | Proceed if |
|---|---|---|---|
| 1 | 1 instance or 5% | 15 to 30 minutes | Error rate and p95 within 10% of baseline; no new error types |
| 2 | 25% | 15 minutes | Same checks, plus business metrics steady |
| 3 | 50% | 15 minutes | Same checks |
| 4 | 100% | Watch for an hour | Keep the previous version ready for rollback |
Mistakes that make canaries useless
- Comparing against a fixed threshold instead of the stable version at the same time, so a traffic spike looks like a regression or hides one.
- Too little traffic: 1% of a quiet service may be a handful of requests. Increase the share or wait longer.
- No version tag on telemetry, so canary and stable data cannot be separated.
- Ignoring slow problems: memory leaks and growing queues may need hours to show up.
- Database migrations that are not backwards compatible, which break the stable version when the canary migrates the schema.
Related reading
- VitalRix and GitHub: Connect GitHub to VitalRix to turn deployments, releases and pushes to the default branch into deploy markers on every chart, verified with webhook signatures.
- Monitoring for logistics and delivery platforms: Monitor logistics and delivery platforms: tracking pages and APIs, partner integrations, scheduled jobs and queues, mobile driver apps’ backends.
- What are DORA metrics?: DORA metrics explained: deployment frequency, lead time for changes, change failure rate and time to restore, how to measure each from your tools.
- The CrowdStrike outage of July 2024, explained: How a faulty CrowdStrike Falcon content update crashed millions of Windows machines on 19 July 2024, grounding flights, and the lessons.
- Developer platform: Send logs, metrics and traces with API keys and OpenTelemetry, read everything over a REST API, receive signed webhooks, and connect GitHub, PagerDuty and more.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.