mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 03:17:07 +08:00
feat: add 'summary' to be overriden from rules.yml
This commit is contained in:
parent
7d05d142d5
commit
6b43e283d4
1 changed files with 1 additions and 1 deletions
2
dist/template.yml
vendored
2
dist/template.yml
vendored
|
|
@ -11,6 +11,6 @@ groups:
|
|||
labels:
|
||||
severity: {{ rule.severity }}
|
||||
annotations:
|
||||
summary: {{ rule.name }} (instance {% raw %}{{ $labels.instance }}{% endraw %})
|
||||
summary: {% if rule.summary %}{{ rule.summary }}{% else %}{{ rule.name }} (instance {% raw %}{{ $labels.instance }}{% endraw %}){% endif %}
|
||||
description: "{{ rule.description | replace: '"', '\"' }}\n VALUE = {% raw %}{{ $value }}{% endraw %}\n LABELS = {% raw %}{{ $labels }}{% endraw %}"
|
||||
{% endfor %}
|
||||
Loading…
Reference in a new issue