Skip to content

Commit 7e78a7c

Browse files
committed
Move description to annotations and add summary
Signed-off-by: Rizwana777 <[email protected]>
1 parent 721ddab commit 7e78a7c

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

controllers/argocd_metrics_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,16 +521,16 @@ func newPrometheusRule(namespace string) *monitoringv1.PrometheusRule {
521521
{
522522
Alert: "ArgoCDSyncAlert",
523523
Annotations: map[string]string{
524-
"message": "ArgoCD application {{ $labels.name }} is out of sync",
524+
"summary": "Argo CD application is out of sync",
525+
"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.",
525526
},
526527
Expr: intstr.IntOrString{
527528
Type: intstr.String,
528529
StrVal: expr,
529530
},
530531
For: "5m",
531532
Labels: map[string]string{
532-
"severity": "warning",
533-
"description": "ArgoCDSyncAlert is listed if Argo CD app is out of sync",
533+
"severity": "warning",
534534
},
535535
},
536536
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ spec:
4646
rules:
4747
- alert: ArgoCDSyncAlert
4848
annotations:
49-
message: ArgoCD application {{ $labels.name }} is out of sync
49+
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.
5051
expr: argocd_app_info{namespace="openshift-gitops",sync_status="OutOfSync"} > 0
5152
labels:
5253
severity: warning
53-
description: ArgoCDSyncAlert is listed if Argo CD app is out of sync

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ spec:
1717
rules:
1818
- alert: ArgoCDSyncAlert
1919
annotations:
20-
message: ArgoCD application {{ $labels.name }} is out of sync
20+
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.
2122
expr: argocd_app_info{namespace="openshift-gitops",sync_status="OutOfSync"} > 0
2223
for: 5m
2324
labels:
2425
severity: warning
25-
description: ArgoCDSyncAlert is listed if Argo CD app is out of sync

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ spec:
1717
rules:
1818
- alert: ArgoCDSyncAlert
1919
annotations:
20-
message: ArgoCD application {{ $labels.name }} is out of sync
20+
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.
2122
expr: argocd_app_info{namespace="openshift-gitops",sync_status="OutOfSync"} > 0
2223
for: 5m
2324
labels:
24-
severity: warning
25-
description: ArgoCDSyncAlert is listed if Argo CD app is out of sync
25+
severity: warning

0 commit comments

Comments
 (0)