From 0dfb85acadcc87ea52c319a6f24fe43f8da4645a Mon Sep 17 00:00:00 2001 From: Theo Brigitte Date: Fri, 22 Nov 2024 15:59:00 +0100 Subject: [PATCH] fix test --- .../atlas/alerting-rules/mimir.rules.test.yml | 50 ++++--------------- 1 file changed, 11 insertions(+), 39 deletions(-) diff --git a/test/tests/providers/capi/capa/platform/atlas/alerting-rules/mimir.rules.test.yml b/test/tests/providers/capi/capa/platform/atlas/alerting-rules/mimir.rules.test.yml index a7208238..642b3120 100644 --- a/test/tests/providers/capi/capa/platform/atlas/alerting-rules/mimir.rules.test.yml +++ b/test/tests/providers/capi/capa/platform/atlas/alerting-rules/mimir.rules.test.yml @@ -633,45 +633,19 @@ tests: # Test for MimirRulerTooManyFailedQueries 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="capa"}' - values: "_x90 1+1x90 90+0x200" - - series: 'capi_cluster_status_condition{cluster_id="myinstall", cluster_type="management_cluster", installation="myinstall", namespace="mimir", pipeline="stable", provider="capa", name="myinstall", type="ControlPlaneReady", status="True"}' - values: "1+0x380" + - series: 'cortex_ruler_queries_total{cluster_id="myinstall", installation="myinstall", namespace="mimir", pipeline="stable", pod="mimir-ruler-aaaaaaaaaa-bbbbb", provider="capa"}' + values: "0x90 0+1x90 90+100x90" + - series: 'cortex_ruler_queries_failed_total{cluster_id="myinstall", installation="myinstall", namespace="mimir", pipeline="stable", pod="mimir-ruler-aaaaaaaaaa-bbbbb", provider="capa", name="myinstall", type="ControlPlaneReady", status="True"}' + values: "0x180 0+2x90" alert_rule_test: - alertname: MimirRulerTooManyFailedQueries - eval_time: 40m - - alertname: MimirRulerTooManyFailedQueries - 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: capa - 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: MimirRulerTooManyFailedQueries - eval_time: 100m + eval_time: 90m - alertname: MimirRulerTooManyFailedQueries + eval_time: 180m - alertname: MimirRulerTooManyFailedQueries - eval_time: 200m + eval_time: 240m - alertname: MimirRulerTooManyFailedQueries - eval_time: 300m + eval_time: 242m exp_alerts: - exp_labels: area: platform @@ -680,15 +654,13 @@ tests: 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: capa + pod: mimir-ruler-aaaaaaaaaa-bbbbb severity: page team: atlas topic: observability exp_annotations: - dashboard: 8280707b8f16e7b87b840fc1cc92d4c5/mimir-writes - description: "Mimir object storage write rate is down." + dashboard: 631e15d5d85afb2ca8e35d62984eeaa0/mimir-ruler + description: "Mimir Ruler mimir-ruler-aaaaaaaaaa-bbbbb is experiencing 2.00% errors while evaluating rules." opsrecipe: "mimir/"