Skip to content

Commit

Permalink
fix(base-cluster/monitoring): send Watchdog alert to null if deadma…
Browse files Browse the repository at this point in the history
…nsswitch is not configured (#1120)
  • Loading branch information
cwrau authored Aug 22, 2024
1 parent d0eca25 commit 1e93c60
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ config:
receiver: pagerduty
{{- end }}
{{- $routes := list (dict "match" (dict "alertname" "InfoInhibitor") "receiver" "null") -}}
{{- if hasKey $receivers "healthchecks.io" -}}
{{- $routes = append $routes (dict "match" (dict "alertname" "Watchdog") "receiver" "healthchecks.io" "group_interval" "1m" "repeat_interval" "1m") -}}
{{- end }}
{{- $routes = append $routes (dict "match" (dict "alertname" "Watchdog") "receiver" (hasKey $receivers "healthchecks.io" | ternary "healthchecks.io" "null") "group_interval" "1m" "repeat_interval" "1m") }}
routes: {{- $routes | toYaml | nindent 6 }}
{{- end }}
{{- end -}}

0 comments on commit 1e93c60

Please sign in to comment.