From 0f0726b36623a1bfc235062bb2dc5a09cb2ae7d5 Mon Sep 17 00:00:00 2001 From: QuantumEnigmaa Date: Mon, 10 Jun 2024 17:41:29 +0200 Subject: [PATCH] update ops recipe --- .../platform/atlas/alerting-rules/mimir.rules.yml | 4 ++-- .../atlas/alerting-rules/mimir.rules.test.yml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/helm/prometheus-rules/templates/platform/atlas/alerting-rules/mimir.rules.yml b/helm/prometheus-rules/templates/platform/atlas/alerting-rules/mimir.rules.yml index 06de5bc1..742beaa6 100644 --- a/helm/prometheus-rules/templates/platform/atlas/alerting-rules/mimir.rules.yml +++ b/helm/prometheus-rules/templates/platform/atlas/alerting-rules/mimir.rules.yml @@ -92,7 +92,7 @@ spec: - alert: MimirIngesterNeedsToBeScaledUp annotations: description: 'Mimir ingester is consuming too much resources and needs to be scaled up.' - opsrecipe: mimir/ + opsrecipe: mimir-ingester/ expr: |- sum by (cluster_id, installation, namespace, pipeline, provider) (container_memory_working_set_bytes{container="ingester", namespace="mimir"}) / @@ -116,7 +116,7 @@ spec: - alert: MimirIngesterNeedsToBeScaledDown annotations: description: 'Mimir ingester is consuming very few resources and needs to be scaled down.' - opsrecipe: mimir/ + opsrecipe: mimir-ingester/ expr: |- sum by (cluster_id, installation, namespace, pipeline, provider) (container_memory_working_set_bytes{container="ingester", namespace="mimir"}) / diff --git a/test/tests/providers/capi/capa-mimir/platform/atlas/alerting-rules/mimir.rules.test.yml b/test/tests/providers/capi/capa-mimir/platform/atlas/alerting-rules/mimir.rules.test.yml index d8518d1c..f4ee2c0c 100644 --- a/test/tests/providers/capi/capa-mimir/platform/atlas/alerting-rules/mimir.rules.test.yml +++ b/test/tests/providers/capi/capa-mimir/platform/atlas/alerting-rules/mimir.rules.test.yml @@ -202,7 +202,7 @@ tests: topic: observability exp_annotations: description: Mimir ingester is consuming very few resources and needs to be scaled down. - opsrecipe: "mimir/" + opsrecipe: "mimir-ingester/" - alertname: MimirIngesterNeedsToBeScaledUp eval_time: 100m # After 140m minutes, all should be back to normal - alertname: MimirIngesterNeedsToBeScaledUp @@ -223,7 +223,7 @@ tests: topic: observability exp_annotations: description: Mimir ingester is consuming very few resources and needs to be scaled down. - opsrecipe: "mimir/" + opsrecipe: "mimir-ingester/" - alertname: MimirIngesterNeedsToBeScaledUp eval_time: 180m # After 140m minutes, all should be back to normal - alertname: MimirIngesterNeedsToBeScaledUp @@ -244,7 +244,7 @@ tests: topic: observability exp_annotations: description: Mimir ingester is consuming very few resources and needs to be scaled down. - opsrecipe: "mimir/" + opsrecipe: "mimir-ingester/" - alertname: MimirIngesterNeedsToBeScaledUp eval_time: 280m # After 140m minutes, all should be back to normal # Test for MimirIngesterNeedsToBeScaledDown alert @@ -279,7 +279,7 @@ tests: topic: observability exp_annotations: description: Mimir ingester is consuming very few resources and needs to be scaled down. - opsrecipe: "mimir/" + opsrecipe: "mimir-ingester/" - alertname: MimirIngesterNeedsToBeScaledDown eval_time: 100m # After 140m minutes, all should be back to normal - alertname: MimirIngesterNeedsToBeScaledDown @@ -300,7 +300,7 @@ tests: topic: observability exp_annotations: description: Mimir ingester is consuming very few resources and needs to be scaled down. - opsrecipe: "mimir/" + opsrecipe: "mimir-ingester/" - alertname: MimirIngesterNeedsToBeScaledDown eval_time: 180m # After 140m minutes, all should be back to normal - alertname: MimirIngesterNeedsToBeScaledDown @@ -321,6 +321,6 @@ tests: topic: observability exp_annotations: description: Mimir ingester is consuming very few resources and needs to be scaled down. - opsrecipe: "mimir/" + opsrecipe: "mimir-ingester/" - alertname: MimirIngesterNeedsToBeScaledDown eval_time: 280m # After 140m minutes, all should be back to normal