Crates.io | mawby |
lib.rs | mawby |
version | 0.1.0 |
source | src |
created_at | 2023-03-03 16:55:57.434723 |
updated_at | 2023-03-03 16:55:57.434723 |
description | Matrix Alertmanager Webhook Bot? Yes! |
homepage | |
repository | |
max_upload_size | |
id | 799870 |
size | 187,305 |
The easiest way right now is to use the container packaging. Builds are
automatically uploaded to quay.io/upto/mawby
. Three label types are
available:
latest
: Latest stable versionmaster
: Latest version from the master branch<version, such as v0.1.0>
: Static versionInside the container, mawby
is running as an unprivileged user (mawby
,
uid/gid 9823/9823). By default, the configuration is read from
/etc/mawby/mawby.conf
, and it requires a writeable data directory at
/var/lib/mawby
(possible to change in config).
To print a commented configuration template, run the application (or the
container) with the argument --print-config-template
.
mawby expects WebhookV4 alerts to be posted to /alerts/<endpoint name>
. Using
the routing statements, this alert will be routed to the expected room. For
example, with this alertmanager.yml
fragment:
receivers:
- name: service_a
webhook_configs:
- url: http://<mawby-host>:9823/alerts/service_a
And this mawby.yaml
fragment:
rooms:
team1: '#team1:example.org'
routes:
service_a:
room: team1
Alerts that are routed to the service_a
receiver in alertmanager will end up
in #team1:example.org.