Added Mattermost webhook notifications for infrastructure services:
- **Netdata**: Health monitoring alerts sent to Mattermost
- Configured via MATTERMOST_WEBHOOK_URL environment variable
- All alert roles route to Mattermost notifications channel
- **Restic/Backrest**: Backup status notifications
- Webhook URL passed as environment variable
- Backrest web UI can be configured to use the webhook
- **Watchtower**: Container update notifications
- Uses Shoutrrr mattermost:// URL format
- Sends notifications when containers are updated
Configuration:
- Webhook URL stored securely in .env file
- All services reference ${MATTERMOST_WEBHOOK_URL} variable
- Watchtower uses specialized Shoutrrr format URL
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
# Netdata health alarm notification configuration
|
|
# This file configures where to send alarm notifications
|
|
|
|
# Enable/disable sending email notifications
|
|
SEND_EMAIL="YES"
|
|
|
|
# Recipient email address for all alarms
|
|
DEFAULT_RECIPIENT_EMAIL="${ADMIN_EMAIL}"
|
|
|
|
# Email sender address
|
|
EMAIL_SENDER="${EMAIL_FROM}"
|
|
|
|
# SMTP configuration
|
|
SENDMAIL=""
|
|
EMAIL_SENDER="${EMAIL_FROM}"
|
|
|
|
# Custom send email command using msmtp
|
|
EMAIL_COMMAND="msmtp -t"
|
|
|
|
# Enable specific notification types
|
|
role_recipients_email[sysadmin]="${ADMIN_EMAIL}"
|
|
role_recipients_email[domainadmin]="${ADMIN_EMAIL}"
|
|
role_recipients_email[dba]="${ADMIN_EMAIL}"
|
|
role_recipients_email[webmaster]="${ADMIN_EMAIL}"
|
|
role_recipients_email[proxyadmin]="${ADMIN_EMAIL}"
|
|
role_recipients_email[sitemgr]="${ADMIN_EMAIL}"
|
|
|
|
###############################################################################
|
|
# Mattermost notifications
|
|
###############################################################################
|
|
|
|
# Enable Mattermost notifications
|
|
SEND_MATTERMOST="YES"
|
|
|
|
# Mattermost incoming webhook URL
|
|
MATTERMOST_WEBHOOK_URL="${MATTERMOST_WEBHOOK_URL}"
|
|
|
|
# Mattermost channel (optional, webhook default channel will be used if empty)
|
|
DEFAULT_RECIPIENT_MATTERMOST=""
|
|
|
|
# Mattermost notification recipients per role
|
|
role_recipients_mattermost[sysadmin]="notifications"
|
|
role_recipients_mattermost[domainadmin]="notifications"
|
|
role_recipients_mattermost[dba]="notifications"
|
|
role_recipients_mattermost[webmaster]="notifications"
|
|
role_recipients_mattermost[proxyadmin]="notifications"
|
|
role_recipients_mattermost[sitemgr]="notifications"
|