Skip to main content

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


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 details)

Uploaded Source

File details

Details for the file supervisor-discord-1.3.tar.gz.

File metadata

  • Download URL: supervisor-discord-1.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for supervisor-discord-1.3.tar.gz
Algorithm Hash digest
SHA256 b2ba040c6f5cfc8babc55acf549b20248744d238104b24da5b4f71899ba1a98f
MD5 8c48d6141d903e282eca0f3b07f339f0
BLAKE2b-256 e21b9e7f63dfeb469c5ed1d1e45684975c64a4e653d27a74de79ffc15d799524

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page