Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte committed Nov 22, 2024
1 parent 18b80f6 commit 0dfb85a
Showing 1 changed file with 11 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/"

0 comments on commit 0dfb85a

Please sign in to comment.