Skip to main content

A matrix bot to manage alerts from Alertmanager

Project description

Matrix AlertBot Built with matrix-nio coverage report

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrix-alertbot-0.1.3.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matrix_alertbot-0.1.3-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file matrix-alertbot-0.1.3.tar.gz.

File metadata

  • Download URL: matrix-alertbot-0.1.3.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for matrix-alertbot-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b403c43bc392060c9408ca2cb000bed4990b45a9d72f92e9c4dec12a14df1abc
MD5 4807e691991f9b52d416ddfa961fca12
BLAKE2b-256 ca2a6bca3bfcada10bd04c6fee60ecf0c87587735b90bb23349e9639723a8b5e

See more details on using hashes here.

File details

Details for the file matrix_alertbot-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for matrix_alertbot-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5d64f28e285d7538263674a3640b33cec6b4bf6375f69c90b6b94fc5408e0a5c
MD5 b622f8198e5c3db9a9c4ab60a8b4144d
BLAKE2b-256 ff83d516ad14d809bb006f2daa823f81589983728c0587998da54dda3600ca88

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