Skip to content

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

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

  2. Add the file

    Choose a .yaml file, drop it on the box, or paste the text.

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

  4. Enter secrets

    Values the file refers to as ${NAME} (a PagerDuty key, a Slack webhook, a password) are entered here, in password fields.

  5. 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:

Starter
version: 1
site: https://example.com
alert_email: ops@example.com

A fuller file

Objects refer to each other by name, so an alert names its monitor and channels, and an SLO names its monitors:

vitalrix.yaml
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.

Sections of a setup file
SectionWhat it creates
applicationsApplications that group monitors, dashboards and SLOs.
rolesCustom roles. You cannot grant permissions you do not have.
teamsTeams and their members (people who are already in the organization).
integrationsSlack, PagerDuty, Opsgenie, Jira, GitHub, AWS, GCP and the rest, with secrets as references.
channelsEmail, Slack, Teams, Discord, Zoho Cliq, SMS, PagerDuty, Opsgenie, webhook and escalation channels.
oncall_schedulesOn-call schedules with rotation layers; people by email.
escalation_policiesSteps that notify a schedule, a person or a channel.
monitorsAll 14 monitor types, with expectations, headers, regions and secrets.
alertsDown, slow, error rate and SSL expiry in a short form, or any rule type in full.
mute_windowsOne-off, weekly or cron quiet periods for monitors, applications or alerts.
slis, slos, slasIndicators, objectives with burn-rate alerts, and customer agreements.
rum_sitesReal user monitoring sites with session replay; applying shows the script tag for your pages.
status_pagesStatus pages and their components; a custom domain on plans that include it.
dashboards, notebooksDashboards with any widget type (monitors, SLOs, status pages and on-call schedules by name) and notebooks.
webhooksOutgoing webhooks for VitalRix events.
api_keysAPI keys; each key is shown once after applying.
infrastructureThe infra agent for an application: its API key and a ready install script for servers, Docker or Kubernetes, shown once.
membersWho should be in the organization, with which role. New people get an invitation email.
organization, usage_controls, ssoOrganization 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:

Steps that are yours
WhatWhat happens
PaymentPaid features need a plan first. On the Free plan the preview says which objects go over its limits.
SecretsEntered when you upload, in password fields.
InvitationsPeople under members who are not in the organization get an email when you apply.
Single sign-onSaved 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 domainAdd the CNAME shown on the status page settings.
Agents and SDKsThe 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.

Around the agent
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.