From 66d9b17525a8610692162ea41da75cf066ae51ec Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 9 Dec 2024 14:00:40 +0100 Subject: [PATCH] fix monitoring: show alerts only from first instance (#521) We don't need to show alerts from longterm instance, because the alerts have shorter timeout than metrics collection interval ## Summary by CodeRabbit - **New Features** - Updated the `VMAlert` YAML template to generate only the first `VMAlert` resource based on metrics storage values. Signed-off-by: Andrei Kvapil --- packages/extra/monitoring/templates/vm/vmalert.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/extra/monitoring/templates/vm/vmalert.yaml b/packages/extra/monitoring/templates/vm/vmalert.yaml index 457b82b9..9f87a80a 100644 --- a/packages/extra/monitoring/templates/vm/vmalert.yaml +++ b/packages/extra/monitoring/templates/vm/vmalert.yaml @@ -18,4 +18,5 @@ spec: url: http://vminsert-{{ .name }}.{{ $.Release.Namespace }}.svc:8480/insert/0/prometheus/api/v1/write resources: {} selectAllByDefault: true +{{- break }} {{- end }}