Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Jun 11, 2024
1 parent 56e693d commit 5fd72c5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ tests:
dashboard: "promRW001/prometheus-remote-write"
description: "Prometheus Mimir to Grafana-Cloud is failing to read or write data."
opsrecipe: "mimir-grafana-cloud-exporter-failing/"
# Tests for `MimirToGrafanaCloudExporter` alert
# Tests for `MimirToGrafanaCloudExporterTooManyRestarts` alert
- interval: 1m
input_series:
# remote read is working for 2 hours and then fails for 1 hour
- series: 'kube_pod_status_ready{condition="true", pod="prometheus-mimir-to-grafana-cloud-0", cluster_id="golem", customer="giantswarm", installation="golem", namespace="mimir", pipeline="testing", provider="capa", region="eu-west-2"}'
values: "_x60 1+0x60 0+0x2 1+0x2 0+0x2 1+0x2 0+0x2 1+x60"
values: "_x60 1+0x60 0+0x2 1+0x2 0+0x2 1+0x2 0+0x2 1+0x60"
alert_rule_test:
- alertname: MimirToGrafanaCloudExporter
- alertname: MimirToGrafanaCloudExporterTooManyRestarts
eval_time: 70m
- alertname: MimirToGrafanaCloudExporter
eval_time: 140m
- alertname: MimirToGrafanaCloudExporterTooManyRestarts
eval_time: 175m
exp_alerts:
- exp_labels:
area: platform
Expand All @@ -140,5 +140,5 @@ tests:
dashboard: "promRW001/prometheus-remote-write"
description: "Prometheus Mimir to Grafana-Cloud is restarting too much."
opsrecipe: "mimir-grafana-cloud-exporter-failing/"
- alertname: MimirToGrafanaCloudExporterFailures
- alertname: MimirToGrafanaCloudExporterTooManyRestarts
eval_time: 180m

0 comments on commit 5fd72c5

Please sign in to comment.