|
1 | 1 | [
|
2 | 2 | {
|
3 |
| - "conditions": [ |
4 |
| - { |
5 |
| - "type": "alert_is_firing", |
6 |
| - "params": { |
7 |
| - "name": "SamplesImagestreamImportFailing" |
| 3 | + "rule": { |
| 4 | + "conditions": [ |
| 5 | + { |
| 6 | + "type": "alert_is_firing", |
| 7 | + "alert": { |
| 8 | + "name": "SamplesImagestreamImportFailing" |
| 9 | + } |
| 10 | + } |
| 11 | + ], |
| 12 | + "gathering_functions": { |
| 13 | + "image_streams_of_namespace": { |
| 14 | + "namespace": "openshift-cluster-samples-operator" |
| 15 | + }, |
| 16 | + "logs_of_namespace": { |
| 17 | + "namespace": "openshift-cluster-samples-operator", |
| 18 | + "tail_lines": 100 |
8 | 19 | }
|
9 | 20 | }
|
10 |
| - ], |
11 |
| - "gathering_functions": { |
12 |
| - "image_streams_of_namespace": { |
13 |
| - "namespace": "openshift-cluster-samples-operator" |
14 |
| - }, |
15 |
| - "logs_of_namespace": { |
16 |
| - "namespace": "openshift-cluster-samples-operator", |
17 |
| - "tail_lines": 100 |
18 |
| - } |
19 |
| - } |
| 21 | + }, |
| 22 | + "errors": null, |
| 23 | + "was_triggered": true |
20 | 24 | },
|
21 | 25 | {
|
22 |
| - "conditions": [ |
23 |
| - { |
24 |
| - "type": "alert_is_firing", |
25 |
| - "params": { |
26 |
| - "name": "APIRemovedInNextEUSReleaseInUse" |
| 26 | + "rule": { |
| 27 | + "conditions": [ |
| 28 | + { |
| 29 | + "type": "alert_is_firing", |
| 30 | + "alert": { |
| 31 | + "name": "APIRemovedInNextEUSReleaseInUse" |
| 32 | + } |
| 33 | + } |
| 34 | + ], |
| 35 | + "gathering_functions": { |
| 36 | + "api_request_counts_of_resource_from_alert": { |
| 37 | + "alert_name": "APIRemovedInNextEUSReleaseInUse" |
27 | 38 | }
|
28 | 39 | }
|
29 |
| - ], |
30 |
| - "gathering_functions": { |
31 |
| - "api_request_counts_of_resource_from_alert": { |
32 |
| - "alert_name": "APIRemovedInNextEUSReleaseInUse" |
33 |
| - } |
34 |
| - } |
| 40 | + }, |
| 41 | + "errors": null, |
| 42 | + "was_triggered": false |
35 | 43 | },
|
36 | 44 | {
|
37 |
| - "conditions": [ |
38 |
| - { |
39 |
| - "type": "alert_is_firing", |
40 |
| - "params": { |
41 |
| - "name": "KubePodCrashLooping" |
| 45 | + "rule": { |
| 46 | + "conditions": [ |
| 47 | + { |
| 48 | + "type": "alert_is_firing", |
| 49 | + "alert": { |
| 50 | + "name": "KubePodCrashLooping" |
| 51 | + } |
| 52 | + } |
| 53 | + ], |
| 54 | + "gathering_functions": { |
| 55 | + "logs_of_unhealthy_pods": { |
| 56 | + "alert_name": "KubePodCrashLooping", |
| 57 | + "tail_lines": 20, |
| 58 | + "previous": true |
42 | 59 | }
|
43 | 60 | }
|
44 |
| - ], |
45 |
| - "gathering_functions": { |
46 |
| - "logs_of_unhealthy_pods": { |
47 |
| - "alert_name": "KubePodCrashLooping", |
48 |
| - "tail_lines": 20, |
49 |
| - "previous": true |
50 |
| - } |
51 |
| - } |
| 61 | + }, |
| 62 | + "errors": null, |
| 63 | + "was_triggered": false |
52 | 64 | },
|
53 | 65 | {
|
54 |
| - "conditions": [ |
55 |
| - { |
56 |
| - "type": "alert_is_firing", |
57 |
| - "params": { |
58 |
| - "name": "KubePodNotReady" |
| 66 | + "rule": { |
| 67 | + "conditions": [ |
| 68 | + { |
| 69 | + "type": "alert_is_firing", |
| 70 | + "alert": { |
| 71 | + "name": "KubePodNotReady" |
| 72 | + } |
| 73 | + } |
| 74 | + ], |
| 75 | + "gathering_functions": { |
| 76 | + "logs_of_unhealthy_pods": { |
| 77 | + "alert_name": "KubePodNotReady", |
| 78 | + "tail_lines": 100, |
| 79 | + "previous": false |
59 | 80 | }
|
60 | 81 | }
|
61 |
| - ], |
62 |
| - "gathering_functions": { |
63 |
| - "logs_of_unhealthy_pods": { |
64 |
| - "alert_name": "KubePodNotReady", |
65 |
| - "tail_lines": 100, |
66 |
| - "previous": false |
| 82 | + }, |
| 83 | + "errors": null, |
| 84 | + "was_triggered": false |
| 85 | + }, |
| 86 | + { |
| 87 | + "rule": { |
| 88 | + "conditions": [ |
| 89 | + { |
| 90 | + "type": "alert_is_firing", |
| 91 | + "alert": { |
| 92 | + "name": "AlertmanagerFailedToSendAlerts" |
| 93 | + } |
| 94 | + } |
| 95 | + ], |
| 96 | + "gathering_functions": { |
| 97 | + "alertmanager_logs": { |
| 98 | + "alert_name": "AlertmanagerFailedToSendAlerts", |
| 99 | + "tail_lines": 50 |
| 100 | + } |
67 | 101 | }
|
68 |
| - } |
| 102 | + }, |
| 103 | + "errors": null, |
| 104 | + "was_triggered": false |
69 | 105 | }
|
70 | 106 | ]
|
0 commit comments