Merge branch 'master' into tls-reference
This commit is contained in:
commit
1b83117a0b
2 changed files with 58 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
||||||
|
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.rules.enabled }}
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-cd.controller.fullname" . }}
|
||||||
|
{{- if .Values.controller.metrics.rules.namespace }}
|
||||||
|
namespace: {{ .Values.controller.metrics.rules.namespace }}
|
||||||
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.controller.name }}
|
||||||
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
app.kubernetes.io/component: {{ .Values.controller.name }}
|
||||||
|
{{- if .Values.controller.metrics.rules.selector }}
|
||||||
|
{{- toYaml .Values.controller.metrics.rules.selector | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.controller.metrics.rules.additionalLabels }}
|
||||||
|
{{- toYaml .Values.controller.metrics.rules.additionalLabels | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: argocd
|
||||||
|
rules:
|
||||||
|
{{- toYaml .Values.controller.metrics.rules.spec | nindent 4 }}
|
||||||
|
{{- end }}
|
|
@ -111,6 +111,37 @@ controller:
|
||||||
# prometheus: kube-prometheus
|
# prometheus: kube-prometheus
|
||||||
# namespace: monitoring
|
# namespace: monitoring
|
||||||
# additionalLabels: {}
|
# additionalLabels: {}
|
||||||
|
rules:
|
||||||
|
enabled: false
|
||||||
|
spec: []
|
||||||
|
# - alert: ArgoAppMissing
|
||||||
|
# expr: |
|
||||||
|
# absent(argocd_app_info)
|
||||||
|
# for: 15m
|
||||||
|
# labels:
|
||||||
|
# severity: critical
|
||||||
|
# annotations:
|
||||||
|
# summary: "[ArgoCD] No reported applications"
|
||||||
|
# description: >
|
||||||
|
# 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
|
||||||
|
# resolved for this cloud to continue to maintain state.
|
||||||
|
# - alert: ArgoAppNotSynced
|
||||||
|
# expr: |
|
||||||
|
# argocd_app_sync_status{sync_status!="Synced"} == 1
|
||||||
|
# for: 12h
|
||||||
|
# labels:
|
||||||
|
# severity: warning
|
||||||
|
# annotations:
|
||||||
|
# summary: "[{{`{{$labels.name}}`}}] Application not synchronized"
|
||||||
|
# description: >
|
||||||
|
# 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
|
||||||
|
# state inside Git.
|
||||||
|
# selector:
|
||||||
|
# prometheus: kube-prometheus
|
||||||
|
# namespace: monitoring
|
||||||
|
# additionalLabels: {}
|
||||||
|
|
||||||
## Enable Admin ClusterRole resources.
|
## Enable Admin ClusterRole resources.
|
||||||
## Enable if you would like to grant rights to ArgoCD to deploy to the local kuberentes cluster.
|
## Enable if you would like to grant rights to ArgoCD to deploy to the local kuberentes cluster.
|
||||||
|
|
Loading…
Reference in a new issue