Skip to content

Commit e1483de

Browse files
authored
enable the monitoring in Argocd, retune the corresponsing alerts (#81540)
Signed-off-by: Nikolaos Moraitis <nmoraiti@redhat.com>
1 parent 982f1bb commit e1483de

2 files changed

Lines changed: 17 additions & 19 deletions

File tree

clusters/core-ci/argocd/openshift-gitops_argocd-prometheusrule.yaml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,53 +13,51 @@ spec:
1313
labels:
1414
severity: critical
1515
annotations:
16-
summary: Argo CD application controller replicas are not fully ready
17-
description: One or more Argo CD application controller replicas have not been ready for at least 10 minutes.
16+
message: Argo CD application controller replicas are not fully ready in openshift-gitops for at least 10 minutes.
1817
- alert: ArgoCDServerUnavailable
1918
expr: kube_deployment_status_replicas_available{namespace="openshift-gitops",deployment="openshift-gitops-server"} < 1
2019
for: 10m
2120
labels:
2221
severity: critical
2322
annotations:
24-
summary: Argo CD server is unavailable
25-
description: The Argo CD API server deployment has had no available replicas for at least 10 minutes.
23+
message: The Argo CD API server deployment has had no available replicas for at least 10 minutes.
2624
- alert: ArgoCDRepoServerUnavailable
2725
expr: kube_deployment_status_replicas_available{namespace="openshift-gitops",deployment="openshift-gitops-repo-server"} < 1
2826
for: 10m
2927
labels:
3028
severity: critical
3129
annotations:
32-
summary: Argo CD repo server is unavailable
33-
description: The Argo CD repo-server deployment has had no available replicas for at least 10 minutes.
30+
message: The Argo CD repo-server deployment has had no available replicas for at least 10 minutes.
3431
- alert: ArgoCDSyncFailures
3532
expr: sum(increase(argocd_app_sync_total{namespace="openshift-gitops",phase=~"Error|Failed"}[15m])) > 0
36-
for: 5m
33+
for: 1m
3734
labels:
3835
severity: warning
3936
annotations:
40-
summary: Argo CD sync failures detected
41-
description: Argo CD reported one or more failed application sync operations in the last 15 minutes.
42-
- alert: ArgoCDApplicationDegraded
43-
expr: argocd_app_info{namespace="openshift-gitops",health_status="Degraded"} > 0
44-
for: 10m
37+
message: Argo CD reported one or more failed application sync operations in the last 15 minutes.
38+
- alert: ArgoCDApplicationNotSyncedOrHealthy
39+
expr: |
40+
sum(
41+
(argocd_app_info{namespace="openshift-gitops",sync_status!="Synced"} == 1)
42+
or
43+
(argocd_app_info{namespace="openshift-gitops",health_status!="Healthy"} == 1)
44+
) > 0
45+
for: 5m
4546
labels:
4647
severity: warning
4748
annotations:
48-
summary: Argo CD application is degraded
49-
description: At least one Argo CD application in openshift-gitops has stayed in Degraded state for 10 minutes.
49+
message: 'Argo CD has {{ $value }} application(s) that are not Synced and/or not Healthy on core-ci.'
5050
- alert: ArgoCDApplicationControllerFrequentRestarts
5151
expr: sum by (pod) (increase(kube_pod_container_status_restarts_total{namespace="openshift-gitops",container="argocd-application-controller",pod=~"openshift-gitops-application-controller-.*"}[30m])) > 2
5252
for: 10m
5353
labels:
5454
severity: warning
5555
annotations:
56-
summary: Argo CD application controller is restarting frequently
57-
description: Argo CD application controller pod {{ $labels.pod }} restarted more than 2 times in 30 minutes.
56+
message: Argo CD application controller pod {{ $labels.pod }} restarted more than 2 times in 30 minutes.
5857
- alert: ArgoCDApplicationControllerOOMKilled
5958
expr: max by (pod) (kube_pod_container_status_last_terminated_reason{namespace="openshift-gitops",container="argocd-application-controller",reason="OOMKilled",pod=~"openshift-gitops-application-controller-.*"}) == 1
6059
for: 10m
6160
labels:
6261
severity: warning
6362
annotations:
64-
summary: Argo CD application controller was OOM-killed
65-
description: Argo CD application controller pod {{ $labels.pod }} was terminated due to OOMKilled in the last restart cycle.
63+
message: Argo CD application controller pod {{ $labels.pod }} was terminated due to OOMKilled in the last restart cycle.

clusters/core-ci/argocd/openshift-gitops_argocd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
enabled: false
6464
initialSSHKnownHosts: {}
6565
monitoring:
66-
enabled: false
66+
enabled: true
6767
notifications:
6868
enabled: false
6969
prometheus:

0 commit comments

Comments
 (0)