Setup from file (YAML)
Set up applications, monitors, alerts, channels, on-call, SLOs, status pages, dashboards, infrastructure agents, people and settings from one YAML file, with a preview before anything changes.
What it does
Describe your whole setup in one YAML file and apply it: applications, monitors, alerts, notification channels, on-call, SLOs, status pages, dashboards, infrastructure agents, people and organization settings. Nothing is created until the file is checked and you have seen a preview, and the same file can be applied again later to change things.
- No forms: one file sets up an organization in minutes, and the next organization the same way.
- Safe: a file with any problem changes nothing, and a failure while applying undoes what that apply created.
- Repeatable: applying the same file again changes nothing; edit a value and only that object is updated.
Upload a file
Open the page
In the Monitor app go to Settings › Setup from file. New to it? Choose Start from template for a ready file with an example of every section.
Add the file
Choose a
.yamlfile, drop it on the box, or paste the text.Check and preview
Every problem is listed with its line number. When there are none, you see what will be created, updated or left as it is. Nothing has changed yet.
Enter secrets
Values the file refers to as
${NAME}(a PagerDuty key, a Slack webhook, a password) are entered here, in password fields.Apply
Each object shows its result. A new API key or webhook signing secret is shown once, with a copy button.
The shortest file
Three lines give you an uptime monitor and an SSL check for the site, an email channel, "down" and "SSL expires soon" alerts, and a public status page:
version: 1
site: https://example.com
alert_email: ops@example.comA fuller file
Objects refer to each other by name, so an alert names its monitor and channels, and an SLO names its monitors:
version: 1
applications:
- { name: Shop, environment: production, base_url: https://shop.example.com }
monitors:
- name: Checkout API
type: api
application: Shop
url: https://api.example.com/health
interval: 5m
expect: { status: 200, response_time_below: 2s }
integrations:
- { name: PagerDuty, kind: pagerduty, credentials: { routingKey: "${PD_ROUTING_KEY}" } }
channels:
- { name: Team email, type: email, to: [ops@example.com] }
- { name: Pager, type: pagerduty, integration: PagerDuty }
alerts:
- name: Checkout API is down
when: { monitor: Checkout API, condition: down, failures: 2 }
notify: [Team email, Pager]
slos:
- { name: Checkout 99.9%, target: 99.9, window: 30d, sli: { kind: monitor_uptime, monitors: [Checkout API] } }
status_pages:
- { name: Shop status, slug: shop-status, components: [{ name: Checkout, monitor: Checkout API }] }What you can set up
Sections are applied in this order, so an object can only name objects from sections above it.
| Section | What it creates |
|---|---|
applications | Applications that group monitors, dashboards and SLOs. |
roles | Custom roles. You cannot grant permissions you do not have. |
teams | Teams and their members (people who are already in the organization). |
integrations | Slack, PagerDuty, Opsgenie, Jira, GitHub, AWS, GCP and the rest, with secrets as references. |
channels | Email, Slack, Teams, Discord, Zoho Cliq, SMS, PagerDuty, Opsgenie, webhook and escalation channels. |
oncall_schedules | On-call schedules with rotation layers; people by email. |
escalation_policies | Steps that notify a schedule, a person or a channel. |
monitors | All 14 monitor types, with expectations, headers, regions and secrets. |
alerts | Down, slow, error rate and SSL expiry in a short form, or any rule type in full. |
mute_windows | One-off, weekly or cron quiet periods for monitors, applications or alerts. |
slis, slos, slas | Indicators, objectives with burn-rate alerts, and customer agreements. |
rum_sites | Real user monitoring sites with session replay; applying shows the script tag for your pages. |
status_pages | Status pages and their components; a custom domain on plans that include it. |
dashboards, notebooks | Dashboards with any widget type (monitors, SLOs, status pages and on-call schedules by name) and notebooks. |
webhooks | Outgoing webhooks for VitalRix events. |
api_keys | API keys; each key is shown once after applying. |
infrastructure | The infra agent for an application: its API key and a ready install script for servers, Docker or Kubernetes, shown once. |
members | Who should be in the organization, with which role. New people get an invitation email. |
organization, usage_controls, sso | Organization name, daily usage caps and retention, and single sign-on. |
What the preview checks
- The file itself: YAML syntax, field names and values, with the line of each problem.
- Names: every name an object refers to exists in the file or in your account.
- Duplicates: an object whose name already exists in your account and was not created by a setup file stops the upload. Rename it in the file, or remove the old one first.
- Your plan: monitor counts, the shortest check interval, status pages, SLOs, on-call schedules and paid features.
- Your permissions: you can only create what your role allows.
- Details that would fail later: check regions that do not exist, unknown webhook events, people who are not members yet.
Applying and changing a setup
- All or nothing: if anything fails while applying, everything that apply created is removed again and the reason is shown.
- Same file, no duplicates: objects created by a file are remembered by name. Applying again updates them; unchanged objects are left alone.
- Objects you remove from the file are not deleted from your account. Remove them in the app.
- One apply at a time per organization.
Let an AI agent do it
With Allow setup through MCP turned on in Settings › AI access (MCP), an AI agent such as Claude Code can write the file for your project, show you the preview (plan_setup) and apply it once you agree (apply_setup). It applies only the file you previewed. Sections that create or need secrets (API keys, the infrastructure agent's key, integrations, webhooks) and sections about people and access (members, roles, organization, usage controls, single sign-on) are refused through MCP: apply those here. See AI agents (MCP).
Steps that stay with you
Some things only you can do. The file sets everything else up, and the result tells you what is left:
| What | What happens |
|---|---|
| Payment | Paid features need a plan first. On the Free plan the preview says which objects go over its limits. |
| Secrets | Entered when you upload, in password fields. |
| Invitations | People under members who are not in the organization get an email when you apply. |
| Single sign-on | Saved but never enforced from a file. Each domain shows the DNS TXT record to add. Test a sign-in, then turn on Require SSO in Settings. |
| Custom status page domain | Add the CNAME shown on the status page settings. |
| Agents and SDKs | The file gives you a ready install script; you copy and paste it on your machines. See the next section. |
Servers, Kubernetes, CPU and pods
Host, container and pod data comes from the VitalRix infra agent running on your machines. VitalRix has no access to your servers, so the file cannot run anything there. An infrastructure entry does the rest: it creates the agent's API key and, after applying, shows a ready install script with that key in it. Copy and paste the script on your servers, into your Dockerfile or into your cluster. The file can also add alerts on CPU, memory and pods, and dashboards. Other ways to install are on the Infrastructure page.
infrastructure:
- { name: Shop servers, application: Shop, install_on: server } # server, docker or kubernetes
alerts:
- name: Server CPU high
rule: { condition_type: metric_threshold, metric_name: system.cpu.utilization, threshold: 90, operator: gt, window_seconds: 300 }
notify: [Team email]
- name: Pod CPU high
rule: { condition_type: metric_threshold, metric_name: k8s.pod.cpu.utilization, threshold: 90, operator: gt, window_seconds: 300 }
notify: [Team email]
- name: Infrastructure data stopped
rule: { condition_type: no_data, metric_name: system.cpu.utilization, window_seconds: 600 }
notify: [Team email]Not in the file
- Billing and payment.
- Incidents, status page incidents and maintenances: these are events, not setup.
- Running the agent install script on your machines (the file gives you the script).
- Personal account settings such as passwords and two-factor sign-in.
Limits and safety
- Files up to 256 KB and 1,000 objects. Split larger setups into several files.
- YAML anchors and aliases (& and *) and custom tags are refused.
- Every change goes through the same permission and plan checks as the app, and is recorded in the audit log.
- API keys and webhook secrets are shown once and are not kept in the apply history.
Something unclear or missing? Open VitalRix and use the in-app setup guides, or read Troubleshooting.