|
|
@ -27,8 +27,10 @@ TEMPLATE_TEXT = (
|
|
|
|
"{% elif labels.severity == 'warning' %}"
|
|
|
|
"{% elif labels.severity == 'warning' %}"
|
|
|
|
"ATTENTION "
|
|
|
|
"ATTENTION "
|
|
|
|
"{% endif %}"
|
|
|
|
"{% endif %}"
|
|
|
|
"{{ labels.alertname }} {{ labels.instance }}\n"
|
|
|
|
"{{ labels.alertname }} {{ labels.instance }}"
|
|
|
|
"{{ annotations.summary }}"
|
|
|
|
"{% if annotations.summary %}"
|
|
|
|
|
|
|
|
"\n{{ annotations.summary }}"
|
|
|
|
|
|
|
|
"{% endif %}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
TEMPLATE_HTML = (
|
|
|
|
TEMPLATE_HTML = (
|
|
|
@ -40,8 +42,11 @@ TEMPLATE_HTML = (
|
|
|
|
"<b><font color='orange'>ATTENTION</font></b> "
|
|
|
|
"<b><font color='orange'>ATTENTION</font></b> "
|
|
|
|
"{% endif %}"
|
|
|
|
"{% endif %}"
|
|
|
|
"<b>{{ labels.alertname }}</b> "
|
|
|
|
"<b>{{ labels.alertname }}</b> "
|
|
|
|
"{{ labels.instance }}<br/>"
|
|
|
|
"{{ labels.instance }}"
|
|
|
|
|
|
|
|
"{% if annotations.summary %}"
|
|
|
|
|
|
|
|
"<br/>"
|
|
|
|
"<blockquote>{{ annotations.summary }}</blockquote>"
|
|
|
|
"<blockquote>{{ annotations.summary }}</blockquote>"
|
|
|
|
|
|
|
|
"{% endif %}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|