Service for managing and receiving Alertmanager alerts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Silke a5dde3d358 Make Event alias a standard definition 3 years ago
alertmanager Move alert functions and types to alertmanager client 3 years ago
bot Move Client to package 'bot' 3 years ago
matrix Make Event alias a standard definition 3 years ago
.gitignore Add bot interaction 4 years ago Add licence and documentation 4 years ago Fix information icon 4 years ago
alertmanager_matrix.go Move Client to package 'bot' 3 years ago
alertmanager_matrix.service Rename service/main file to match repo 4 years ago


Service for sending alerts from the Alertmanager webhook to a Matrix room and managing Alertmanager.


The service is configured either through command line arguments or environment variables. With the provided systemd service file (alertmanager_matrix.service), the configuration is done in /etc/default/alertmanager_matrix as follows:


See alertmanager_matrix -help for all possible arguments.

Configure Alertmanager with a webhook to this service:

- name: matrix
  - url: "http://localhost:4051/<room_id>"

When the -rooms option is provided the bot will join the listed rooms and only allow commands from these rooms. The service will not automatically join the room given in a webhook.

The icons and colors can be configured by providing a JSON file. The defaults are:

	"alert":       "🔔️",
	"information": "ℹ️",
	"warning":     "⚠️",
	"critical":    "🚨",
	"ok":          "✅",
	"silenced":    "🔕"
	"alert":       "black",
	"information": "blue",
	"warning":     "orange",
	"critical":    "red",
	"ok":          "green",
	"silenced":    "gray"