Skip to content

Commit 92713d1

Browse files
committed
Update e2e assets for alerts
1 parent bb30cbe commit 92713d1

File tree

3 files changed

+96
-4
lines changed

3 files changed

+96
-4
lines changed

test/openshift/e2e/ignore-tests/sequential/1-005_validate_metrics/01-assert.yaml

+29-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,35 @@ spec:
4747
- alert: ArgoCDSyncAlert
4848
annotations:
4949
summary: Argo CD application is out of sync
50-
description: Argo CD application {{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync.
50+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync.
5151
expr: argocd_app_info{namespace="openshift-gitops",sync_status="OutOfSync"} > 0
5252
labels:
5353
severity: warning
54+
- alert: ArgoCDUnknownSyncAlert
55+
annotations:
56+
summary: Argo CD application sync state is unknown
57+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is in an unknown sync state. Check ArgoCDUnknownSyncAlert status, this often occurs when the Application is misconfigured.
58+
expr: argocd_app_info{namespace="openshift-gitops",sync_status="Unknown"} > 0
59+
labels:
60+
severity: critical
61+
- alert: ArgoCDHealthAlert
62+
annotations:
63+
summary: Argo CD application is not healthy
64+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is not healthy. Check ArgoCDHealthAlert status, this alert is designed to notify that an application managed by Argo CD is not in a healthy, suspended, progressing or degraded state.
65+
expr: argocd_app_info{namespace="openshift-gitops", health_status!~"Healthy|Suspended|Progressing|Degraded"} > 0
66+
labels:
67+
severity: warning
68+
- alert: ArgoCDDegradedAlert
69+
annotations:
70+
summary: Argo CD application is degraded
71+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is degraded. Check ArgoCDDegradedAlert status, this alert is designed to notify that an application managed by Argo CD is degraded.
72+
expr: argocd_app_info{namespace="openshift-gitops", health_status="Degraded"} > 0
73+
labels:
74+
severity: critical
75+
- alert: ArgoCDProgressingAlert
76+
annotations:
77+
summary: Argo CD application has been progressing for more than 10 minutes
78+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} has been progressing for more than 10 minutes. Check ArgoCDProgressingAlert status, this alert is designed to notify when an application is taking a long time to exit the Progressing state.
79+
expr: argocd_app_info{namespace="openshift-gitops", health_status="Progressing"} > 0
80+
labels:
81+
severity: warning

test/openshift/e2e/ignore-tests/sequential/1-041_validate_argocd_sync_alert/01-assert.yaml

+33-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,40 @@ spec:
1818
- alert: ArgoCDSyncAlert
1919
annotations:
2020
summary: Argo CD application is out of sync
21-
description: Argo CD application {{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync.
21+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync.
2222
expr: argocd_app_info{namespace="openshift-gitops",sync_status="OutOfSync"} > 0
2323
for: 5m
2424
labels:
2525
severity: warning
26+
- alert: ArgoCDUnknownSyncAlert
27+
annotations:
28+
summary: Argo CD application sync state is unknown
29+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is in an unknown sync state. Check ArgoCDUnknownSyncAlert status, this often occurs when the Application is misconfigured.
30+
expr: argocd_app_info{namespace="openshift-gitops",sync_status="Unknown"} > 0
31+
for: 5m
32+
labels:
33+
severity: critical
34+
- alert: ArgoCDHealthAlert
35+
annotations:
36+
summary: Argo CD application is not healthy
37+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is not healthy. Check ArgoCDHealthAlert status, this alert is designed to notify that an application managed by Argo CD is not in a healthy, suspended, progressing or degraded state.
38+
expr: argocd_app_info{namespace="openshift-gitops", health_status!~"Healthy|Suspended|Progressing|Degraded"} > 0
39+
for: 5m
40+
labels:
41+
severity: warning
42+
- alert: ArgoCDDegradedAlert
43+
annotations:
44+
summary: Argo CD application is degraded
45+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is degraded. Check ArgoCDDegradedAlert status, this alert is designed to notify that an application managed by Argo CD is degraded.
46+
expr: argocd_app_info{namespace="openshift-gitops", health_status="Degraded"} > 0
47+
for: 5m
48+
labels:
49+
severity: critical
50+
- alert: ArgoCDProgressingAlert
51+
annotations:
52+
summary: Argo CD application has been progressing for more than 10 minutes
53+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} has been progressing for more than 10 minutes. Check ArgoCDProgressingAlert status, this alert is designed to notify when an application is taking a long time to exit the Progressing state.
54+
expr: argocd_app_info{namespace="openshift-gitops", health_status="Progressing"} > 0
55+
for: 10m
56+
labels:
57+
severity: warning

test/openshift/e2e/sequential/1-041_validate_argocd_sync_alert/01-assert.yaml

+34-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,40 @@ spec:
1818
- alert: ArgoCDSyncAlert
1919
annotations:
2020
summary: Argo CD application is out of sync
21-
description: Argo CD application {{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync.
21+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync.
2222
expr: argocd_app_info{namespace="openshift-gitops",sync_status="OutOfSync"} > 0
2323
for: 5m
2424
labels:
25-
severity: warning
25+
severity: warning
26+
- alert: ArgoCDUnknownSyncAlert
27+
annotations:
28+
summary: Argo CD application sync state is unknown
29+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is in an unknown sync state. Check ArgoCDUnknownSyncAlert status, this often occurs when the Application is misconfigured.
30+
expr: argocd_app_info{namespace="openshift-gitops",sync_status="Unknown"} > 0
31+
for: 5m
32+
labels:
33+
severity: critical
34+
- alert: ArgoCDHealthAlert
35+
annotations:
36+
summary: Argo CD application is not healthy
37+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is not healthy. Check ArgoCDHealthAlert status, this alert is designed to notify that an application managed by Argo CD is not in a healthy, suspended, progressing or degraded state.
38+
expr: argocd_app_info{namespace="openshift-gitops", health_status!~"Healthy|Suspended|Progressing|Degraded"} > 0
39+
for: 5m
40+
labels:
41+
severity: warning
42+
- alert: ArgoCDDegradedAlert
43+
annotations:
44+
summary: Argo CD application is degraded
45+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} is degraded. Check ArgoCDDegradedAlert status, this alert is designed to notify that an application managed by Argo CD is degraded.
46+
expr: argocd_app_info{namespace="openshift-gitops", health_status="Degraded"} > 0
47+
for: 5m
48+
labels:
49+
severity: critical
50+
- alert: ArgoCDProgressingAlert
51+
annotations:
52+
summary: Argo CD application has been progressing for more than 10 minutes
53+
description: Argo CD application {{ $labels.namespace }}/{{ $labels.name }} has been progressing for more than 10 minutes. Check ArgoCDProgressingAlert status, this alert is designed to notify when an application is taking a long time to exit the Progressing state.
54+
expr: argocd_app_info{namespace="openshift-gitops", health_status="Progressing"} > 0
55+
for: 10m
56+
labels:
57+
severity: warning

0 commit comments

Comments
 (0)