You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
907 B
Plaintext
29 lines
907 B
Plaintext
---
|
|
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<b><font color='red'>
|
|
{% elif alert['labels']['severity'] == 'warning' and alert['status'] == 'firing' %}
|
|
<b><font color='orange'>
|
|
{% elif alert['status'] == 'resolved' %}
|
|
<b><font color='green'> End of alert
|
|
{% else %}
|
|
<b><font>
|
|
{% endif %}
|
|
{{ alert['labels']['alertname'] }}: {{ alert['labels']['instance'] }} <br/>
|
|
</font></b>
|
|
{{ alert['annotations']['title'] }}<br/>
|
|
{{ alert['annotations']['description'] }}<br/>
|
|
|
|
But this is a custom template for Cassandre, so, here is a warning:<br/>
|
|
<blockquote>Beware of greeks bearing gifts</blockquote>
|
|
...
|