Operate

Alerts

Every minute the host checks that each resource is running, not crash-looping, passing its health check and (for a public app) answering on its port. A sustained failure opens an incident; recovery closes it. The project's admins and Devs get an in-app notification when it opens and one when it closes — never in between. A workspace owner isn't told unless they opt in on the project's Alerts page (bell and email).

A service that keeps failing its own health check is restarted. If your image declares a Docker HEALTHCHECK and it has reported unhealthy for 5 minutes while the container keeps running, the host restarts that service, then waits at least 15 minutes before trying again: at most 3 restarts per incident and 3 per service in 24 hours. Databases are never restarted this way, and neither is anything in a project or on a server muted for planned work. Each restart shows on the incident ("restarted automatically once") and in Settings → Activity as system:auto-restart. Anyone on the project can turn it off under Automatic restarts on its Alerts page, or with PUT /api/v1/alerts {"autoRestart": false}; a failing health check is then only told.

The workspace's Settings → Alerts (an owner or admin) sets the default rules every project follows and who hears about all of them; GET|PUT /api/v1/workspace/alerts with a workspace token. A project can add its own recipients and rules.

A scheduled job's failed run is told too (job-failed). Every five minutes the newest finished run of each job is checked: a scheduled run that failed (a non-zero exit, stopped at the one-hour limit, or couldn't start) opens one incident and is told once, Job failed: <job> (<project>); the next run that works, scheduled or Run now, closes it and is told once, Job working again: <job> (<project>). Runs that keep failing in between say nothing more. A failed Run now is never told (you're watching it), and neither is a run you stopped. A failure is told only within 20 minutes of the run finishing, so one that finished while our alerting was down for longer than that is shown on the job's Runs tab but not told. Stopping, pausing or deleting the job closes its incident without a message. Webhook events job.failed / job.ok, with cause job-failed.

The project's Alerts page, for anyone on the project, sets eight alerts (service-down, job-failed, service-limit with a threshold, default 80%, deploy-failed, deploy-succeeded, dependency-advisory, backup-failed, sync-failed; deploy-succeeded and dependency-advisory start off), each with on/off and email, Telegram and webhook switches, and who is told: up to 10 alert emails (at most 20 emails a day for the project), Telegram chats connected on the page through our bot (every alert email has a one-click Stop these alert emails link, which switches that address off on the list it came from; anyone on the project can switch it back on), and a webhook (https, shown back as its host only): one JSON POST per alert, accepted as-is by Slack and Discord incoming webhooks (text / content carry the message; event, resource, cause, openedAt, closedAt, durationSeconds, url for anything you write yourself). A deploy in progress, or one that finished in the last three minutes, never counts.

API: GET /api/v1/incidents, GET|PUT /api/v1/alerts ({"webhookUrl": "https://…"}, "" clears; {"emails": ["a@x.com"]}, with {"emailsPaused": ["a@x.com"]} to keep an address listed but send it nothing (left out, what was paused stays paused; GET shows them as emails.paused); {"rules": {"service-limit": {"threshold": 70}, "deploy-failed": {"on": false}}}, or {"rules": null} to go back to the defaults; {"autoRestart": false} to stop automatic restarts, true to turn them back on), POST /api/v1/alerts/test.

Something wrong or missing here? Tell us and a person will answer.