Skip to content

Setup from file

Set up all of VitalRix from one YAML file

Write your setup once: applications, monitors, alerts, channels, on-call, SLOs, status pages, dashboards, infrastructure agents, people and settings. Upload it, see exactly what will change, and apply. No forms.

5 min read7 sectionsUpdated

On this page

How it works

  1. Write or download a file. Start from the template in Settings › Setup from file: it has an example of every section. Three lines are enough to begin (version, site and alert_email).
  2. Check and preview. VitalRix reads the file, checks every field, every name it refers to, your plan and your permissions, and shows what will be created, updated or left alone. Nothing has changed yet.
  3. Enter secrets. Anything written as ${NAME}, such as a PagerDuty key or a Slack webhook, is entered in a password field.
  4. Apply. Objects are created in the right order, so an alert can name the monitor and the channels it uses. New API keys and webhook signing secrets are shown once.
vitalrix.yamlyaml
version: 1

monitors:
  - name: Checkout API
    type: api
    url: https://api.example.com/health
    interval: 5m
    expect: { status: 200, response_time_below: 2s }

channels:
  - { name: Team email, type: email, to: [ops@example.com] }
  - { name: Pager, type: pagerduty, integration: PagerDuty }

integrations:
  - { name: PagerDuty, kind: pagerduty, credentials: { routingKey: "${PD_ROUTING_KEY}" } }

alerts:
  - name: Checkout API is down
    when: { monitor: Checkout API, condition: down, failures: 2 }
    notify: [Team email, Pager]

status_pages:
  - { name: Shop status, slug: shop-status, components: [{ name: Checkout, monitor: Checkout API }] }

What one file can set up

Every part of VitalRix you would otherwise configure by hand has a section. Objects refer to each other by name, and sections are applied in order, so you never need an id.

AreaSections
Organizationapplications, roles, teams, members (invitations), organization name, usage controls, single sign-on
Monitoringmonitors (all 14 types), alerts (short form or any rule type), mute windows
Notificationsintegrations (Slack, PagerDuty, Opsgenie, Jira, GitHub, AWS, GCP…), channels, outgoing webhooks
Responseon-call schedules, escalation policies, escalation channels
ReliabilitySLIs, SLOs with burn-rate alerts, SLAs
Real usersRUM sites with session replay (applying shows the script tag)
Publish and explorestatus pages and components, dashboards, notebooks
AccessAPI keys (shown once after applying)
Infrastructurethe infra agent for an application: its API key and a ready install script for servers, Docker or Kubernetes

Built to be safe to run

A configuration tool that half-applies a file is worse than a form. Setup from file is designed so the account is never left halfway.

  • Nothing changes until the file is valid

    YAML syntax, every field, every name reference, names that already exist in your account, plan limits and permissions are all checked before anything is written. You get the full list of problems at once, each with its line.

  • All or nothing

    If a service refuses something while applying, every object that apply created is removed again, newest first, and the reason is shown.

  • Secrets stay out of the file

    Secrets are written as ${NAME} references. A token typed in clear text is refused. Values go straight to the service that uses them and are stored encrypted.

  • Same permissions as the app

    Every object is created with your own permissions and plan, and recorded in the audit log. A role can only grant permissions you already have.

  • Repeatable

    Objects created by a file are remembered by name. Applying the same file again changes nothing; changing a value updates only that object.

  • Careful with risky settings

    Single sign-on is saved but never enforced from a file, so a wrong setting cannot lock anyone out. You turn enforcement on after a test sign-in.

What stays with you

Some steps can only be done by you. The file sets up everything around them, and the result says what is left.

StepWhy it is yours
PaymentA paid plan is your decision. On the Free plan the preview shows what goes over its limits.
Running the agentServers, Kubernetes clusters and your code are yours: VitalRix has no access to them. The file creates the agent key and gives you a ready install script to copy and paste, plus the CPU, memory and pod alerts and the dashboards.
DNS recordsSingle sign-on domains and custom status page domains need a record in your DNS. The result shows exactly which one.
InvitationsPeople listed under members who are not in the organization get an invitation email when you apply.

Frequently asked questions

Do I need to know YAML?

Only the basics. Start from the template in Settings › Setup from file: every section has a commented example, and the preview tells you the line of any mistake.

What happens if a name already exists in my account?

If the object was not created by a setup file, the upload stops and nothing is changed. Rename it in the file, or remove the old one in the app first. Objects created by an earlier apply are updated instead.

Are objects I remove from the file deleted?

No. Removing something from the file leaves it in your account. Delete it in the app when you no longer need it.

Can it install the agent on my servers?

Almost. VitalRix has no access to your machines, so it cannot run anything there. Add an infrastructure entry and, after applying, you get a ready install script with the agent key in it: copy and paste it on your servers, into your Dockerfile or into your cluster. The script is shown once.

Does it work on the Free plan?

Yes. The preview checks your plan, so a file that asks for more monitors, a shorter interval or a paid feature than your plan allows is stopped before anything is created.

Where do I find the full reference?

In the guide on docs.vitalrix.com, which lists every section, what the preview checks and the steps that stay with you.

Set up your monitoring in minutes

Create a free account, open Settings › Setup from file and start from the template.