-
Notifications
You must be signed in to change notification settings - Fork 15
/
test_rules.yaml
28 lines (28 loc) · 1.11 KB
/
test_rules.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:
- prometheus_rules.yaml
evaluation_interval: 1m
tests:
- interval: 1s
input_series:
- series: 'kube_node_status_condition{condition="Ready", job="kube-state-metrics", status="true", node="host1.lab.comp.com"}'
values: '1+0x05'
- series: 'ceph_disk_occupation{job="rook-ceph-mgr", exported_instance="host1.lab.comp.com"}'
values: '1+0x05'
promql_expr_test:
- expr: cluster:ceph_node_down:join_kube
eval_time: 4s
exp_samples:
- labels: 'cluster:ceph_node_down:join_kube{node="host1.lab.comp.com"}'
value: 1
- interval: 1s
input_series:
- series: 'kube_node_status_condition{condition="Ready", job="kube-state-metrics", status="true", node="host1.lab.comp.com"}'
values: '0+0x05'
- series: 'ceph_disk_occupation{job="rook-ceph-mgr", exported_instance="host1.lab.comp.com"}'
values: '1+0x05'
promql_expr_test:
- expr: cluster:ceph_node_down:join_kube
eval_time: 4s
exp_samples:
- labels: 'cluster:ceph_node_down:join_kube{node="host1.lab.comp.com"}'
value: 0