mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-25 02:46:59 +08:00
Add FOR clause to alerting rules (when necessary)
This commit is contained in:
parent
72f958eb06
commit
971bbe03ec
2 changed files with 379 additions and 192 deletions
569
_data/rules.yml
569
_data/rules.yml
File diff suppressed because it is too large
Load diff
2
rules.md
2
rules.md
|
|
@ -80,7 +80,7 @@
|
||||||
{% for comment in comments %}# {{ comment | strip }}
|
{% for comment in comments %}# {{ comment | strip }}
|
||||||
{% endfor %}- alert: {{ ruleNameCamelcase | remove: ' ' }}
|
{% endfor %}- alert: {{ ruleNameCamelcase | remove: ' ' }}
|
||||||
expr: {{ rule.query }}
|
expr: {{ rule.query }}
|
||||||
for: {% if rule.for %}{{ rule.for }}{% else %}5m{% endif %}
|
for: {% if rule.for %}{{ rule.for }}{% else %}0m{% endif %}
|
||||||
labels:
|
labels:
|
||||||
severity: {{ rule.severity }}
|
severity: {{ rule.severity }}
|
||||||
annotations:
|
annotations:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue