monitorly.yaml is the desired state of one project. monitorly plan compares it with the project, monitorly apply makes the project match. JSON is valid YAML, so the same file works as JSON.
$schema: https://app.monitorly.cloud/api/v1/schemas/monitorly-config.jsonproject: Storefrontchecks: - ref: storefront name: Storefront intervalSecs: 60 nodes: [platform-de-fra-1, platform-us-east-1, platform-sg-1] kind: type: http url: https://shop.example.com/health method: GET maxRedirects: 5 headers: - name: Authorization secret: keep assertions: - { target: status, op: eq, value: 200 } - ref: shop-certificate name: Shop certificate intervalSecs: 3600 nodes: [platform-de-fra-1, platform-us-east-1] kind: { type: ssl, host: shop.example.com, port: 443 } - ref: nightly-backup name: Nightly backup kind: type: heartbeat graceSecs: 1800 schedule: { syntax: cron, expression: "0 3 * * *", timezone: Europe/Berlin }statusPages: - ref: public slug: example-shop title: Example Shop status published: true components: - { ref: shop, check: storefront, name: Online shop }maintenance: - ref: sunday-upgrades title: Sunday upgrades checks: [storefront] schedule: { kind: weekly, weekdays: [7], localStart: "04:00", durationMins: 60 }Node names in the example are placeholders: take yours from monitorly node list.
Top level
Section titled “Top level”| Field | Meaning |
|---|---|
project |
The project’s id or exact name. Used by the CLI to find the project; not sent to the server |
$schema |
Optional, for editors; ignored |
checks |
Checks, below |
statusPages |
Status pages, below |
maintenance |
Maintenance windows, below |
prune |
true: delete, in the sections present, resources managed by the file that it no longer lists |
A section that is absent is left as it is. An unknown field is an error.
Every resource has a ref: its stable key in the file, 1 to 63 characters of a-z, 0-9 and -, starting with a letter or digit, unique within its section (components: within their page). Renaming a resource keeps its ref; changing the ref is a delete and a create.
Resources that apply created or adopted are managed by config. Resources made in the dashboard are not, until a plan adopts them (warning config.adopts_unmanaged), and are never deleted by prune. Editing a managed resource in the dashboard shows up as config.drift in the next plan.
checks
Section titled “checks”A check has the fields of the Checks reference (name, intervalSecs, timeoutMs, nodes, quorum, downAfter, upAfter, muted, escalationPolicyId, kind), with these differences:
refis required;nodesmay list node names as well as ids. The CLI replaces each name with the id of the one node of that exact name; an unknown or shared name stops the command withnode_unresolvedand sends nothing;- a server check names its node in
kind.nodeId, by name or id, and has nonodes; - HTTP headers are written as
{name, value}for a plain value, or{name, secret}for a secret:secret: keepkeeps the stored secret of that header;secret: {set: "<value>"}stores a new one. It is always an update, since a secret is never compared with the stored one, so preferkeepin a committed file and set secrets once from a shell or CI secret.
statusPages
Section titled “statusPages”| Field | Meaning |
|---|---|
ref, slug, title |
Required. slug is the page’s address, https://status.monitorly.cloud/<slug> |
published |
Publish the page; it needs at least one component |
components |
In display order; replaces the page’s components. Each has ref, check (the ref of a check of the project, in the file or stored), optional name and group |
theme |
The page’s look (Status pages): absent keeps it, null clears it, an object replaces it. Changing it needs a project admin |
A component without name follows its check’s name. The website link, accent color and logos stay in the dashboard.
maintenance
Section titled “maintenance”| Field | Meaning |
|---|---|
ref, title |
Required |
checks |
refs of the project’s checks |
schedule |
{kind: once, startsAt, endsAt} with RFC 3339 times, or {kind: weekly, weekdays, localStart, durationMins} with ISO weekdays (1 Monday … 7 Sunday), a local HH:MM start and 1 to 10080 minutes |
timezone |
An IANA name; the workspace’s when absent |
Limits
Section titled “Limits”A plan has at most 300 resources, and a page at most 300 components. A plan is kept for 15 minutes; applying it after a change to its resources answers config.plan_stale, and you plan again.
JSON Schema
Section titled “JSON Schema”The server publishes the schema of this file at https://app.monitorly.cloud/api/v1/schemas/monitorly-config.json. The CLI validates against it before sending anything; editors with YAML language support use it through $schema for completion and errors. The MCP tool get_config_schema returns the same schema.