From 6ef6f3a771bdcb22bf1988c793d086c54f4ddcae Mon Sep 17 00:00:00 2001 From: Haleygo Date: Fri, 17 Feb 2023 02:26:17 +0800 Subject: [PATCH] vmalert: fix maxResolveDuration flag note (#3827) Signed-off-by: Haleygo --- app/vmalert/main.go | 2 +- docs/vmalert.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmalert/main.go b/app/vmalert/main.go index b8203d71a..33f3e74e3 100644 --- a/app/vmalert/main.go +++ b/app/vmalert/main.go @@ -63,7 +63,7 @@ absolute path to all .tpl files in root.`) validateTemplates = flag.Bool("rule.validateTemplates", true, "Whether to validate annotation and label templates") validateExpressions = flag.Bool("rule.validateExpressions", true, "Whether to validate rules expressions via MetricsQL engine") maxResolveDuration = flag.Duration("rule.maxResolveDuration", 0, "Limits the maximum duration for automatic alert expiration, "+ - "which is by default equal to 3 evaluation intervals of the parent group.") + "which by default is 4 times evaluationInterval of the parent group.") resendDelay = flag.Duration("rule.resendDelay", 0, "Minimum amount of time to wait before resending an alert to notifier") ruleUpdateEntriesLimit = flag.Int("rule.updateEntriesLimit", 20, "Defines the max number of rule's state updates stored in-memory. "+ "Rule's updates are available on rule's Details page and are used for debugging purposes. The number of stored updates can be overriden per rule via update_entries_limit param.") diff --git a/docs/vmalert.md b/docs/vmalert.md index 30142f80a..fdaae4b6e 100644 --- a/docs/vmalert.md +++ b/docs/vmalert.md @@ -1165,7 +1165,7 @@ The shortlist of configuration flags is the following: -rule.configCheckInterval duration Interval for checking for changes in '-rule' files. By default the checking is disabled. Send SIGHUP signal in order to force config check for changes. DEPRECATED - see '-configCheckInterval' instead -rule.maxResolveDuration duration - Limits the maximum duration for automatic alert expiration, which is by default equal to 3 evaluation intervals of the parent group. + Limits the maximum duration for automatic alert expiration, which by default is 4 times evaluationInterval of the parent group. -rule.resendDelay duration Minimum amount of time to wait before resending an alert to notifier -rule.templates array