From 455a8e021d22e631316ba3034c93108244ceb12b Mon Sep 17 00:00:00 2001 From: Herve Nicol <12008875+hervenicol@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:58:15 +0100 Subject: [PATCH] update capz tests --- .../atlas/alerting-rules/mimir.rules.test.yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/test/tests/providers/capi/capz/platform/atlas/alerting-rules/mimir.rules.test.yml b/test/tests/providers/capi/capz/platform/atlas/alerting-rules/mimir.rules.test.yml index 89d3ca7b..7050bb8d 100644 --- a/test/tests/providers/capi/capz/platform/atlas/alerting-rules/mimir.rules.test.yml +++ b/test/tests/providers/capi/capz/platform/atlas/alerting-rules/mimir.rules.test.yml @@ -566,3 +566,66 @@ tests: dashboard: mimir-continous-test/mimir-continous-test description: "Mimir continuous test myinstall is not producing metrics." opsrecipe: "mimir/" + + # Test for MimirObjectStorageLowRate alert + - interval: 1m + input_series: + - series: 'cortex_bucket_store_sent_chunk_size_bytes_count{cluster_id="myinstall", cluster_type="management_cluster", installation="myinstall", namespace="mimir", pipeline="stable", provider="capz"}' + values: "_x90 1+1x90 90+0x90" + - series: 'capi_cluster_status_condition{cluster_id="myinstall", cluster_type="management_cluster", installation="myinstall", namespace="mimir", pipeline="stable", provider="capz", name="myinstall", type="ControlPlaneReady", status="True"}' + values: "1+0x270" + alert_rule_test: + - alertname: MimirObjectStorageLowRate + eval_time: 40m + - alertname: MimirObjectStorageLowRate + eval_time: 70m + exp_alerts: + - exp_labels: + area: platform + cancel_if_outside_working_hours: "true" + cancel_if_cluster_status_creating: "true" + cancel_if_cluster_status_deleting: "true" + cancel_if_cluster_status_updating: "true" + cluster_id: myinstall + cluster_type: management_cluster + installation: myinstall + name: myinstall + namespace: mimir + pipeline: stable + provider: capz + severity: page + status: "True" + team: atlas + topic: observability + type: ControlPlaneReady + exp_annotations: + dashboard: 8280707b8f16e7b87b840fc1cc92d4c5/mimir-writes + description: "Mimir object storage write rate is down." + opsrecipe: "mimir/" + - alertname: MimirObjectStorageLowRate + eval_time: 100m + - alertname: MimirObjectStorageLowRate + - alertname: MimirObjectStorageLowRate + eval_time: 200m + - alertname: MimirObjectStorageLowRate + eval_time: 250m + exp_alerts: + - exp_labels: + area: platform + cancel_if_outside_working_hours: "true" + cancel_if_cluster_status_creating: "true" + cancel_if_cluster_status_deleting: "true" + cancel_if_cluster_status_updating: "true" + cluster_id: myinstall + cluster_type: management_cluster + installation: myinstall + namespace: mimir + pipeline: stable + provider: capz + severity: page + team: atlas + topic: observability + exp_annotations: + dashboard: 8280707b8f16e7b87b840fc1cc92d4c5/mimir-writes + description: "Mimir object storage write rate is down." + opsrecipe: "mimir/"