--- username: kassandra homeserver: https://matrix.org password: beware of greeks bearing gifts port: 8000 host: 127.0.0.1 alert_rooms: - "#troy:matrix.org" - "#ithaca:matrix.org" templates: "Test": | {% if alert['labels']['severity'] == 'critical' and alert['status'] == 'firing' %} @room {% elif alert['labels']['severity'] == 'warning' and alert['status'] == 'firing' %} {% elif alert['status'] == 'resolved' %} End of alert {% else %} {% endif %} {{ alert['labels']['alertname'] }}: {{ alert['labels']['instance'] }}
{{ alert['annotations']['title'] }}
{{ alert['annotations']['description'] }}
But this is a custom template for Cassandre, so, here is a warning:
Beware of greeks bearing gifts
...