-
Notifications
You must be signed in to change notification settings - Fork 690
/
Copy pathtests.yaml
28 lines (26 loc) · 886 Bytes
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
rule_files:
- /tmp/manifests/prometheus_alerts.yaml
- /tmp/manifests/prometheus_rules.yaml
evaluation_interval: 1m
tests:
- interval: 1m
input_series:
- series: 'sealed_secrets_controller_unseal_errors_total{reason="update",namespace="test"}'
values: '0+0x5 1+1x5'
- series: 'sealed_secrets_controller_unseal_errors_total{reason="unseal",namespace="test"}'
values: '0+0x10'
alert_rule_test:
- eval_time: 5m
alertname: SealedSecretsUnsealErrorHigh
- eval_time: 10m
alertname: SealedSecretsUnsealErrorHigh
exp_alerts:
- exp_labels:
severity: warning
namespace: test
reason: update
exp_annotations:
summary: 'Sealed Secrets Unseal Error High'
description: 'High number of errors during unsealing Sealed Secrets in test namespace.'
runbook_url: 'https://github.com/bitnami-labs/sealed-secrets'