From 0bc2cbdd7d431a9880284ea14890b4d2d6b9d89b Mon Sep 17 00:00:00 2001 From: Niko Smeds Date: Wed, 17 Nov 2021 15:09:47 -0800 Subject: [PATCH] Leave time range for clean restarts as-is Signed-off-by: Niko Smeds --- documentation/prometheus-mixin/alerts.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/prometheus-mixin/alerts.libsonnet b/documentation/prometheus-mixin/alerts.libsonnet index 7fec72b99..77e0f6ce9 100644 --- a/documentation/prometheus-mixin/alerts.libsonnet +++ b/documentation/prometheus-mixin/alerts.libsonnet @@ -403,7 +403,7 @@ or ( count by (%(prometheusHAGroupLabels)s) ( - changes(process_start_time_seconds{%(prometheusSelector)s}[1h]) > 4 + changes(process_start_time_seconds{%(prometheusSelector)s}[30m]) > 4 ) / count by (%(prometheusHAGroupLabels)s) ( @@ -418,7 +418,7 @@ }, annotations: { summary: 'More than half of the Prometheus instances within the same HA group are crashlooping.', - description: '{{ $value | humanizePercentage }} of Prometheus instances within the %(prometheusHAGroupName)s HA group have had at least 5 total restarts or 2 unclean restarts in the last 1h.' % $._config, + description: '{{ $value | humanizePercentage }} of Prometheus instances within the %(prometheusHAGroupName)s HA group have had at least 5 recent total restarts or 2 recent unclean restarts.' % $._config, }, }, ],