-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathproject_controller_up_test.yaml
32 lines (29 loc) · 1.29 KB
/
project_controller_up_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
evaluation_interval: 1m
rule_files:
- 'prometheus.project_controller_up_alerts.yaml'
tests:
- interval: 1m
input_series:
- series: 'konflux_up{namespace="project-controller", check="replicas-available", service="project-controller-controller-manager", source_cluster="c1"}'
values: '0 0 0 0 0'
- series: 'konflux_up{namespace="project-controller", check="replicas-available", service="project-controller-controller-manager", source_cluster="c2"}'
values: '1 1 1 1 1'
alert_rule_test:
- eval_time: 5m
alertname: ProjectControllerDown
exp_alerts:
- exp_labels:
severity: critical
check: replicas-available
namespace: project-controller
service: project-controller-controller-manager
slo: "true"
source_cluster: c1
exp_annotations:
summary: Project controller is down on cluster c1
description: >
Some of the replicas of project-controller-controller-manager are down
on cluster c1
alert_team_handle: <!subteam^S07NDQV6A4D>
team: vanguard
runbook_url: https://gitlab.cee.redhat.com/konflux/docs/sop/-/blob/main/vanguard/project-controller-down.md