supervisor-event-to-slack

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

README

supervisor-event-to-slack

This showcase repository listens to supervisor events and sends these events to Slack properly. Generic supervisor-event-handler is used to process supervisor events.

installation

  • Download from Releases
  • Install from source:
git clone git@github.com:mtyurt/supervisor-event-to-slack
cd supervisor-event-to-slack
vgo build

usage

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.

troubleshooting

  • Make sure Slack token and channel are correct.
  • Check if status_listener is working via supervisorctl status all, restart supervisord if it does not.
  • Check /var/log/supervisord.log and /var/log/supervisor/status_listener-*.log for further information.

licence

The BSD 3-Clause License - see LICENSE for more details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL