Send down and back-up alerts to Mattermost (#6)
Deploy to Cloudflare / build-and-deploy (push) Skipped
Check / check (push) Successful in 10m48s

The webhook address is private: uptime.config.ts names it as secret:MATTERMOST_WEBHOOK and the
worker reads the Worker secret of that name (bound in deploy.tf from the GitHub Actions secret).
The address is kept out of the logs. Alerts wait 3 minutes before saying something is down.
This commit is contained in:
michael authored and GitHub committed 2026-11-23 10:11:52 -05:00
1 parent cf977e65da
commit 7c3eb7debd
5 files changed
+53 -5

No files matched your search

+13 -1
View File
@@ -57,7 +57,19 @@ const workerConfig: WorkerConfig = {
headers: { 'User-Agent': 'cottage-status (+https://status.cottage.host)' },
},
],
// Alerts come from Grafana Cloud (hearth infra/monitoring). A webhook here could page too.
// Down and back-up messages go to the founder's Mattermost (channel "alerts"). The webhook address
// is private: the worker reads it from the Worker secret MATTERMOST_WEBHOOK (GitHub Actions secret of
// the same name, bound in deploy.tf). Grafana Cloud (hearth infra/monitoring) alerts there too.
notification: {
webhook: {
url: 'secret:MATTERMOST_WEBHOOK',
payloadType: 'json',
payload: { text: '$MSG', username: 'Status' },
},
timeZone: 'Etc/UTC',
// Wait a few minutes before saying something is down, so a single failed check doesn't page.
gracePeriod: 3,
},
}
// Notices shown on the page: incident updates and planned maintenance. Newest last.