Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-docs-quality-audit-1774862932.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Slack Notifications
Configure error notifications and alerts for the Watch Tower. The Watch Tower can send notifications to Slack when errors occur during operation.Setting up Slack webhook
To enable Slack notifications, you need to provide a Slack webhook URL.Creating a webhook
- Go to your Slack workspace settings
- Create an Incoming Webhook integration
- Copy the webhook URL (starts with
https://hooks.slack.com/services/...)
Configuring the watch-tower
Provide the webhook URL using the--slack-webhook option:
What gets notified
The watch-tower sends Slack notifications for:Execution errors
When the watch-tower encounters an error during execution:- Exception messages
- Critical failures that prevent processing
- Link to Tenderly dashboard for debugging
Silent mode
You can disable all notifications using the--silent flag:
- Local development and testing
- CI/CD environments
- When using alternative monitoring solutions
Error rate limiting
To prevent notification spam, the watch-tower implements automatic rate limiting:Rate limit period
2 hours - Only one error notification is sent every 2 hours.How it works
- When an error occurs, the watch-tower checks
LAST_NOTIFIED_ERRORin the database - If less than 2 hours have passed since the last notification, the new error is logged but not sent to Slack
- If 2 hours or more have passed, the notification is sent and
LAST_NOTIFIED_ERRORis updated
Rate limit behavior
When a notification is rate limited, you’ll see a log message:Notification format
Slack notifications are sent as simple text messages using the webhook’stext field:
- Set a custom bot name
- Add an icon
- Configure which channel receives notifications
Database persistence
TheLAST_NOTIFIED_ERROR timestamp is persisted to the database atomically with other state updates. This ensures:
- Rate limiting survives watch-tower restarts
- No duplicate notifications after crashes
- Consistent behavior across deployments
Requirements
Slack notifications require one of:- A valid
--slack-webhookURL is provided, OR - The
--silentflag is enabled