A matrix bot to manage alerts from Alertmanager
Project description
Matrix AlertBot
A bot that receives alert from Alertmanager to send them to a Matrix room. Users can interract with the bot to create silences for the alerts.
Features include:
- Send alerts from Alertmanager to a Matrix room
- Add a reaction to an alert to create a silence until the alert is resolved
- Reply to an alert to create a silence with a given duration
- Reply to an alert to create a silence until the alert is resolved
- Remove silences created through the bot
- Participation in end-to-end encrypted rooms
Getting started
See SETUP.md for how to setup and run the bot.
See CONTRIBUTING.md for how to contribute to the project.
Project structure
The majority of the code is kept inside of the matrix_alertbot
folder, which
is in itself a python package,
the __init__.py
file inside declaring it as such.
To run the bot, the matrix-alertbot
script in the root of the codebase is
available. It will import the main
function from the main.py
file in the
package and run it. To properly install this script into your python environment,
run pip install -e .
in the project's root directory.
setup.py
contains package information (for publishing the code to
PyPI) and setup.cfg
just contains some configuration
options for linting tools.
config.sample.yaml
is a sample configuration file. You should copy this file to config.yaml
, then edit it according to
your needs. Be sure never to check the edited config.yaml
into source control
since it'll likely contain sensitive details such as passwords!
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
Built Distribution
File details
Details for the file matrix_alertbot-0.3.2.tar.gz
.
File metadata
- Download URL: matrix_alertbot-0.3.2.tar.gz
- Upload date:
- Size: 63.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a24a74af07d69dfca68ce840f69f5e68672310bcfd1e709157b670384551d6ce |
|
MD5 | e538cbbe6663faccae130a7338466b98 |
|
BLAKE2b-256 | ffd034f2a412f4227b64ca3cf47dc8cb34a8f30a1ed5fd4e016bc44f7792802f |
File details
Details for the file matrix_alertbot-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: matrix_alertbot-0.3.2-py3-none-any.whl
- Upload date:
- Size: 60.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed83a2505037873bb55560a310e23098f1f8f16374a09fe1e0c8b5305b8dba1f |
|
MD5 | 249a7a10530ada1f1f91a2ea84a29ca3 |
|
BLAKE2b-256 | 6c307176c778e48c458d8b90d54124d825e3dc6fab1860bf3eda48814da230ee |