You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/base-cluster/templates/monitoring/kube-prometheus-stack/_alertmanager-config.yaml
+32-28
Original file line number
Diff line number
Diff line change
@@ -33,36 +33,40 @@ config:
33
33
global:
34
34
pagerduty_url: {{ .Values.monitoring.prometheus.alertmanager.receivers.pagerduty.url | required "You need to provide the `.Values.monitoring.promteheus.alertmanager.receivers.pagerduty.url`" | quote }}
35
35
{{- end }}
36
-
receivers:
37
-
{{- if .Values.monitoring.prometheus.alertmanager.receivers.pagerduty.enabled }}
38
-
- name: pagerduty
39
-
pagerduty_configs:
40
-
- routing_key: {{ .Values.monitoring.prometheus.alertmanager.receivers.pagerduty.integrationKey | required "You need to provide the `.Values.monitoring.prometheus.alertmanager.receivers.pagerduty.integrationKey`" }}
41
-
send_resolved: true
42
-
http_config:
43
-
follow_redirects: true
44
-
{{- end }}
45
-
{{- if and .Values.monitoring.deadMansSwitch.enabled .Values.global.baseDomain .Values.global.clusterName }}
{{- if .Values.monitoring.prometheus.alertmanager.receivers.pagerduty.enabled }}
36
+
{{- $receivers := dict "null" (dict) -}}
37
+
{{- if .Values.monitoring.prometheus.alertmanager.receivers.pagerduty.enabled -}}
38
+
{{- $receivers = set $receivers "pagerduty" (dict
39
+
"pagerduty_configs"(list (dict
40
+
"routing_key"(.Values.monitoring.prometheus.alertmanager.receivers.pagerduty.integrationKey | required "You need to provide the `.Values.monitoring.prometheus.alertmanager.receivers.pagerduty.integrationKey`")
41
+
"send_resolved"true
42
+
"http_config"(dict "follow_redirects" true)
43
+
)
44
+
)
45
+
)
46
+
-}}
47
+
{{- end -}}
48
+
{{- if and .Values.monitoring.deadMansSwitch.enabled .Values.global.baseDomain .Values.global.clusterName -}}
49
+
{{- $receivers = set $receivers "healthchecks.io" (dict
0 commit comments