Skip to main content
Environments separate monitors and configuration by deployment stage so that a probe targeting staging.example.com lives alongside — but never collides with — its production counterpart. Environments power filtered dashboards and per-stage variable substitution at check time.
Define this in code. Environments live in devhelm.yml alongside monitors and tags. See Tags & Secrets for the YAML schema.

Model

Common patterns

Per-stage URLs

Define environments with a BASE_URL variable, then reference it from the monitor config with {{ENV.VAR}}. The value from the monitor’s linked environment is substituted on every check:
Two things to note:
  • Quote the value in YAML ("{{ENV.BASE_URL}}/health"), because an unquoted { starts a YAML map. The {{…}} form passes through the CLI and Terraform unchanged.
  • ${ENV.VAR} still works as an alias. In devhelm.yml and Terraform a plain ${…} is their own interpolation, so write the alias as $${ENV.BASE_URL} there.
  • References work in any string field of the monitor config (URL, custom header values, request body). Secrets are referenced the same way with {{SECRET.KEY}}, in headers and the body only — see Secrets.
  • A reference with no value fails the check and sends no request. The result names it, for example Reference {{ENV.BASE_URL}} has no value: the monitor's environment does not define BASE_URL, or …: the monitor has no environment.
Each monitor is pinned to one environment via its environment field — there is no deploy-time flag that re-targets a whole file at a different environment. To promote a config across stages, define one monitor entry per stage (as above) or maintain per-stage YAML files.

Dashboard filtering

The monitor list (dashboard and GET /api/v1/monitors?environmentId=...) supports filtering by environment. Combine with tags for finer slicing — for example, environment production plus tag payments.

Managing environments

  1. Open Settings → Environments.
  2. Click Create Environment, choose a slug + display name, and optionally mark it as the default.
  3. Add variables for any per-stage values you want to template into monitors and channels.

Lifecycle and constraints

  • Slugs are immutable. Updates can change name, variables, and isDefault, but never the slug. Renaming a slug requires creating a new environment, repointing monitors, then deleting the old one.
  • Deleting an environment is rejected while active monitors still reference it (ENVIRONMENT_DELETE_BLOCKED, HTTP 409). Repoint or delete those monitors first.
  • Environment count is plan-limited. Exceeding the plan’s maximum returns ENVIRONMENT_LIMIT_REACHED.
  • Variables are resolved at check execution time by the probe, not baked into the config at deploy time. Updating a variable takes effect from the next check — no redeploy needed.

Next steps

Multi-environment guide

End-to-end setup for prod / staging / dev YAML files.

Secrets

Store credentials for authenticated monitor checks.

Tags

Slice resources orthogonally to environments.

environments CLI

Manage from the command line.