This showcase repository listens to supervisor events and sends these events to Slack properly. Generic supervisor-event-handler is used to process supervisor events.
- Download from Releases
- Install from source:
git clone firstname.lastname@example.org:mtyurt/supervisor-event-to-slack cd supervisor-event-to-slack vgo build
This program needs to be provided to supervisor configuration as event listener. A bare minimum configuration would be:
$ cat > eventlistener.ini <<EOF [eventlistener:status_listener] command=/path/to/supervisor-event-to-slack events=PROCESS_STATE autostart=true environment=SLACK_TOKEN="your-slack-token",SLACK_CHANNNEL="channel-to-post-messages" EOF
Copy this file to supervisor.d config directory, by default
/etc/supervisor.d/, and restart supervisord.
Check out http://supervisord.org/events.html for event types and their payloads.
- Make sure Slack token and channel are correct.
- Check if
status_listeneris working via
supervisorctl status all, restart supervisord if it does not.
/var/log/supervisor/status_listener-*.logfor further information.
The BSD 3-Clause License - see LICENSE for more details.