mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 17:07:24 +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 }}
|
||||
{% endfor %}- alert: {{ ruleNameCamelcase | remove: ' ' }}
|
||||
expr: {{ rule.query }}
|
||||
for: {% if rule.for %}{{ rule.for }}{% else %}5m{% endif %}
|
||||
for: {% if rule.for %}{{ rule.for }}{% else %}0m{% endif %}
|
||||
labels:
|
||||
severity: {{ rule.severity }}
|
||||
annotations:
|
||||
|
|
|
|||
Loading…
Reference in a new issue