Prerequisites
Prerequisites
- DevHelm CLI installed
- An API token — see Authentication
- Existing monitors created through the Dashboard
Migration strategy
The goal is to transition from “click-to-create” to “commit-to-deploy” without any monitoring gaps. The process:- Export your current state to YAML
- Validate the export matches what’s running
- Commit the YAML to your repository
- Let future changes go through code instead of the Dashboard
Step-by-step migration
Export current monitors
List all your monitors and capture their configuration:Convert to YAML format:The
export command generates a devhelm.yml from your current organization state including monitors, alert channels, tags, and notification policies.Review the exported YAML
Open Set the secrets:
devhelm.yml and review:- Monitor names and URLs are correct
- Frequencies and regions match expectations
- Alert channel types are right (webhook URLs will be placeholders for security)
- Tags are present
${VAR} references:Validate and plan
Check that the YAML is syntactically valid:Preview what would change:Since you exported from the current state, the plan should show no changes (or minimal differences from secret handling). If you see unexpected creates or deletes, review the YAML against the Dashboard.
Deploy
Apply the YAML to take ownership:This makes DevHelm’s config-as-code system the source of truth. Dashboard changes will now show as drift in
devhelm plan.Set up CI/CD
Add a GitHub Actions workflow to deploy on push. See CI/CD pipeline guide.
Handling drift
After migration, if someone edits a resource through the Dashboard:devhelm deploy overwrites the Dashboard changes with the YAML definition. Make this expectation clear to your team: YAML is the source of truth.
Incremental migration
You don’t have to migrate everything at once. Start with a subset:- Export only your critical production monitors
- Deploy and validate
- Gradually add more resources to the YAML
- Eventually export alert channels and notification policies too
Next steps
Monitoring as Code tutorial
Full YAML format and workflow guide.
Multi-environment config
Manage staging and production separately.
CI/CD pipeline
Automate deploys from GitHub Actions.