--- listen: - address: 127.0.0.1 port: 9823 rooms: public: '#bottest-public:zkt.se' private-alias: '#bottest-private:zkt.se' private-unlisted: '!sDMKLdSWFBYiZDgxMe:zkt.se' #test2: '!bFxlvmSmOIupPlrMAu:zkt.se' #auth: # basic: # user: pass # query_string_secret: asdf formatters: ydefault: message_format: markdown template: | #### [{{ status | capitalize }}{% if status == "firing" %}:{{ firing | length }}{% endif %}] {%-if firing | length > 0 %} ##### Alerts Firing: {% for alert in firing-%} {%-if alert.labels | length > 0 -%} * {{ alert.fingerprint | escape }} * Labels:{% for label in alert.labels %} - {{ label.key }}: {{ label.value }} {%-endfor %} {%-endif %} {%-if alert.annotations | length > 0 %} * Annotations:{% for annotation in alert.annotations %} - {{ annotation.key }}: {{ annotation.value }} {%-endfor %} {%-endif %} * [Source]({{ alert.generator_url }}) {% endfor %} {%-endif-%} {%-if resolved | length > 0 %} ##### Alerts Resolved: {% for alert in resolved-%} {%-if alert.labels | length > 0 -%} * {{ alert.fingerprint | escape }} * Labels:{% for label in alert.labels %} - {{ label.key }}: {{ label.value }} {%-endfor %} {%-endif %} {%-if alert.annotations | length > 0 %} * Annotations:{% for annotation in alert.annotations %} - {{ annotation.key }}: {{ annotation.value }} {%-endfor %} {%-endif %} * [Source]({{ alert.generator_url }}) {% endfor %} {%-endif-%} routes: a: room: public b: room: private-alias #formatter: default matrix: homeserver_url: https://homeserver.zkt.se user: '@bottest:zkt.se' password: 'yOhUgqZm8kM3oqzhsqTCXOQe' #display_name: Monitorbot datadir: /home/zqad/tmp/matrix-alertmanager-webhook #datadir: /var/lib/mawby