-
Notifications
You must be signed in to change notification settings - Fork 48
/
availability_metric_konflux_test.yaml
50 lines (43 loc) · 1.74 KB
/
availability_metric_konflux_test.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
evaluation_interval: 1m
rule_files:
- prometheus.availability_metric_konflux_alerts.yaml
tests:
- interval: 1m
input_series:
- series: 'konflux_up{service="grafana", check="prometheus-appstudio-ds", source_cluster="stone-stg-rh01"}'
values: '1x59 _x61'
- series: 'konflux_up{service="grafana", check="prometheus-appstudio-ds", source_cluster="stone-stg-m01"}'
values: '1x120'
alert_rule_test:
- eval_time: 120m
alertname: KonfluxAlert
exp_alerts:
- exp_labels:
severity: warning
check: prometheus-appstudio-ds
service: grafana
source_cluster: stone-stg-rh01
exp_annotations:
summary: >-
Availability metric 'konflux_up' is missing.
description: >-
Availability metric 'konflux_up' is missing some entries for check
prometheus-appstudio-ds on service grafana and cluster stone-stg-rh01 when
compared to previous hour.
alert_routing_key: 'o11y'
- interval: 1m
input_series:
- series: 'konflux_up{service="grafana", check="prometheus-appstudio-ds", source_cluster="stone-stg-rh01"}'
values: '1x30 _x90'
alert_rule_test:
- eval_time: 120m
alertname: KonfluxAlert
- interval: 1m
input_series:
- series: 'konflux_up{service="grafana", check="prometheus-appstudio-ds", source_cluster="stone-stg-rh01", pod="grafana-pod1"}'
values: '_x59 1x61'
- series: 'konflux_up{service="grafana", check="prometheus-appstudio-ds", source_cluster="stone-stg-rh01", pod="grafana-pod2"}'
values: '1x59 _x61'
alert_rule_test:
- eval_time: 120m
alertname: KonfluxAlert