Alerts
402 pro_required and the console's Pro routes are not served. Get a licence · Core and Pro · Pro features indexAlert rules watch the system's metrics and raise alerts; notification channels deliver them. Rules are evaluated by JoobQ Pro's alert manager, which needs a Pro key: without one the server builds no alert manager and the /api/v1/alerts* routes are not registered. The notification-channel routes exist either way, but only alerts send through them.


Rules
| Route | Role | What it does |
|---|---|---|
GET /api/v1/alerts | viewer | Overview: active alerts, rules and recent history |
GET /api/v1/alerts/active, /history, /options | viewer | Firing and acknowledged alerts, resolved ones, and what a rule may watch |
GET /api/v1/alerts/rules | viewer | The rules |
POST /api/v1/alerts/rules {name, metric, operator, threshold, severity?, duration_seconds?, description?} | operator | Create a rule |
PUT /api/v1/alerts/rules/:id {enabled}, DELETE /api/v1/alerts/rules/:id | operator | Enable, disable or delete one |
POST /api/v1/alerts/:id/acknowledge | operator | Acknowledge an active alert |
The server checks the rules every 30 seconds. Rules apply to the whole system (a rule with a queue is 422). Rules are kept in Redis and shared by every instance, but the state of an alert (firing, acknowledged) is per instance: an acknowledgement sent to another instance answers 404.
Notification channels
GET/POST /api/v1/notification-channels, GET/PUT/DELETE /api/v1/notification-channels/:id and POST .../:id/test are admin only, reads included. A channel is {name, kind: email|slack|pagerduty|webhook, enabled, min_severity, email?, url?, secret?}; its URL and key are sealed with JOOBQUI_SECRETS_KEY and never returned.
- Webhooks are https only, and an address that resolves to a private, loopback or reserved range is refused (
JOOBQUI_ALLOW_PRIVATE_WEBHOOKS=truelifts that, for development). Redirects are not followed. - Each send is tried three times; deliveries carry
X-JoobQUI-Delivery, and with a secretX-JoobQUI-TimestampandX-JoobQUI-Signature(HMAC-SHA-256 of<timestamp>.<body>). - Email channels need SMTP (
SMTP_HOST,SMTP_USERNAME). - Only the instance holding the
alertslease sends;JOOBQUI_ALERT_NOTIFICATIONS=offkeeps an instance from sending.