Skip to main content
By the end of this guide, you’ll have separate monitoring configurations for staging and production, with shared base definitions and environment-specific overrides.

Strategy: separate files

The simplest approach is one YAML file per environment:

Production config

Staging config

Staging typically has longer intervals, fewer regions, and less aggressive alerting:
Key differences from production:

Deploy with environment-specific tokens

Each environment uses its own API token:
Staging deploys first. Production only deploys if staging succeeds.

Secret management

Each environment needs its own secrets:
Never share API tokens between environments. Use separate tokens so staging changes can’t accidentally affect production.

Next steps

CI/CD pipeline

Full GitHub Actions deployment workflow.

Monitoring as Code tutorial

YAML format and deploy workflow.

Migrating from Dashboard

Move existing monitors to config files.