-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.yaml
24 lines (22 loc) · 1004 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
rule_files:
- prometheus_alerts.yaml
evaluation_interval: 1m
tests:
- interval: 1m
input_series:
- series: 'ceph_pg_clean{job="ceph",instance="instance:9283"}'
values: '128 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100'
- series: 'ceph_pg_total{job="ceph",instance="instance:9283"}'
values: '128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128'
alert_rule_test:
- eval_time: 31m
alertname: CephPGAreUnclean
exp_alerts:
- exp_labels:
job: ceph
instance: 'instance:9283'
severity: warning
exp_annotations:
description: 'Placement groups contain objects that are not replicated the desired number of times. They should be recovering.'
runbook_url: https://github.com/devopyio/ceph-monitoring-mixin/tree/master/runbook.md#alert-name-cephpgareunclean
grafana_url: ''