From a6bf7d11681048b059dae3c3a31f9798cd08899e Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Wed, 30 Dec 2020 19:07:26 +0100 Subject: [PATCH] feat(alert template): custom "for" duration --- rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.md b/rules.md index 74673de..21e659a 100644 --- a/rules.md +++ b/rules.md @@ -80,7 +80,7 @@ {% for comment in comments %}# {{ comment | strip }} {% endfor %}- alert: {{ ruleNameCamelcase | remove: ' ' }} expr: {{ rule.query }} - for: 5m + for: {% if rule.for %}{{ rule.for }}{% else %}5m{% endif %} labels: severity: {{ rule.severity }} annotations: