Skip to content

Commit

Permalink
- add unit test
Browse files Browse the repository at this point in the history
- fix msg
  • Loading branch information
gabrielcocenza committed Dec 19, 2024
1 parent 4d96cc5 commit 8b4a4fa
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/unit/test_alert_rules/test_opensearch_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,20 @@ tests:
severity: warning
cluster: opensearch-x7zb
exp_annotations:
message: "Cluster opensearch-x7zb is throttling. Please optimize queries and indexing patterns or consider scale the application."
message: "Cluster opensearch-x7zb is throttling. Please review your indexing request rate, index lifecycle or consider scale the application."
summary: "OpenSearch Indexing Throttle"

- interval: 1m
input_series:
- series: 'opensearch_indices_indexing_is_throttled_bool{cluster="opensearch-x7zb"}'
values: '1x360'
alert_rule_test:
- eval_time: 2h
alertname: OpenSearchThrottlingTooLong
exp_alerts:
- exp_labels:
severity: critical
cluster: opensearch-x7zb
exp_annotations:
message: "Cluster opensearch-x7zb is throttling for at least two hours. Please review your indexing request rate, index lifecycle or consider scale the application."
summary: "OpenSearch Indexing Throttle too long"

0 comments on commit 8b4a4fa

Please sign in to comment.