Alerts and notifications
Create alerts on the Alerts screen, with a live preview of what would have fired over the last days, or in code with defineAlert. An alert made in the app can be exported as code.
Channels
Add channels on Settings, Notification channels:
| Channel | Needs |
|---|---|
| Slack | An incoming webhook, or VIGIE_SLACK_WEBHOOK. |
| Discord | A webhook URL. |
VIGIE_SMTP_URL and VIGIE_MAIL_FROM. | |
| Webhook | A URL. Signed following the Standard Webhooks spec. |
| Your own | defineChannel. |
Send a test posts a sample alert, so you can see it before you need it.
What a message says
Alerts that fire within 30 seconds of each other (VIGIE_ALERT_GROUP_MS) go out as one message. It leads with a sentence, not a metric: "Invoices are not reaching Invoxa", from your error renderers. It lists the errors behind it with their why and fix, and links to the screen to open. When it stops, a second message says so.
Linear
Set VIGIE_LINEAR_API_KEY and VIGIE_LINEAR_TEAM_ID to add Create Linear issue on every issue, with the error, its occurrences and its trace.