Service for sending alerts from the Alertmanager webhook to a Matrix room.
The service is configured either through command line arguments or environment variables.
With the provided systemd service file (
the configuration is done in
/etc/default/alertmanager-matrix as follows:
HOMESERVER=http://localhost:8008 USER_ID=@bot:example.com TOKEN=<token>
Configure Alertmanager with a webhook to this service:
receivers: - name: mail email_configs: - to: firstname.lastname@example.org - name: matrix webhook_configs: - url: "http://localhost:4051/<room_id>"
The service will not automatically join configured rooms.