[argo-cd] do not include rules by default

This makes the Helm chart not include any rules by default
and make it opt-in for the user to add them.
This commit is contained in:
Mohammed Naser 2019-12-08 19:42:13 -05:00
parent 9e72bcc4c7
commit 944a9eb873

View file

@ -113,31 +113,31 @@ controller:
# additionalLabels: {} # additionalLabels: {}
rules: rules:
enabled: false enabled: false
spec: spec: []
- alert: ArgoAppMissing # - alert: ArgoAppMissing
expr: | # expr: |
absent(argocd_app_info) # absent(argocd_app_info)
for: 15m # for: 15m
labels: # labels:
severity: critical # severity: critical
annotations: # annotations:
summary: "[ArgoCD] No reported applications" # summary: "[ArgoCD] No reported applications"
description: > # description: >
ArgoCD has not reported any applications data for the past 15 minutes which # ArgoCD has not reported any applications data for the past 15 minutes which
means that it must be down or not functioning properly. This needs to be # means that it must be down or not functioning properly. This needs to be
resolved for this cloud to continue to maintain state. # resolved for this cloud to continue to maintain state.
- alert: ArgoAppNotSynced # - alert: ArgoAppNotSynced
expr: | # expr: |
argocd_app_sync_status{sync_status!="Synced"} == 1 # argocd_app_sync_status{sync_status!="Synced"} == 1
for: 12h # for: 12h
labels: # labels:
severity: warning # severity: warning
annotations: # annotations:
summary: "[{{`{{$labels.name}}`}}] Application not synchronized" # summary: "[{{`{{$labels.name}}`}}] Application not synchronized"
description: > # description: >
The application [{{`{{$labels.name}}`}} has not been synchronized for over # The application [{{`{{$labels.name}}`}} has not been synchronized for over
12 hours which means that the state of this cloud has drifted away from the # 12 hours which means that the state of this cloud has drifted away from the
state inside Git. # state inside Git.
# selector: # selector:
# prometheus: kube-prometheus # prometheus: kube-prometheus
# namespace: monitoring # namespace: monitoring