Connect supervisor to discord via webhooks
Project description
supervisor-discord
Connects supervisor alerts to discord using webhooks.
Install
pip install supervisor-discord
Configure
Either run supervisor-discord -s
, or create config.yaml manually using supervisor-discord -c
.
config.yaml is typically located at ~/.config/supervisordiscord/config.yaml
.
example: # process name
alerts: # list of process states that can trigger this message
- STARTING
- RUNNING
- BACKOFF
- STOPPING
- FATAL
- EXITED
- STOPPED
- UNKNOWN
message_format: '{{process_name}} changed to state {{to_state}}'
webhookURL: # discord webhook url
repeat for each process.
message_format
supports strftime and the following formats:
{{process_name}}, {{from_state}}, {{to_state}}
Supervisor.conf
Ensure that supervisor-discord is on your system PATH
.
[eventlistener:supervisor-discord]
command=supervisor-discord
events=PROCESS_STATE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
supervisor-discord-1.3.tar.gz
(7.6 kB
view hashes)