Skip to content

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

Key points

  • Start small: 1 to 10% of traffic or one instance.
  • Compare canary against baseline on error rate and latency, not against a fixed number.
  • Decide automatically where possible: promote or roll back on clear rules.
  • Tag telemetry with the version so the comparison is possible.

Canary vs other strategies

StrategyHow it worksRiskCost
All at onceReplace every instanceEveryone hit by a bad releaseLowest
RollingReplace instances in batchesGrows as the rollout proceedsLow
Blue-greenSwitch all traffic to a parallel environmentAll users at switch time; fast rollbackDouble capacity briefly
CanarySmall share first, then expandOnly the canary shareNeeds 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.

A simple canary process

StepTraffic to new versionWaitProceed if
11 instance or 5%15 to 30 minutesError rate and p95 within 10% of baseline; no new error types
225%15 minutesSame checks, plus business metrics steady
350%15 minutesSame checks
4100%Watch for an hourKeep 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.

Frequently asked questions

Why is it called a canary?

After the canaries miners used to detect gas: a small, early warning before everyone is exposed.

Do I need Kubernetes for canaries?

No. Any load balancer or feature flag system that can send a share of traffic to a new version works.

  • 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.