generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add alert for failing helmreleases deploying aws components (#1432)
* Add alert for failing helmreleases deploying aws components * Add alerts for azure cloud components HelmReleases * Use generic alert for all providers
- Loading branch information
1 parent
92f843f
commit e4a5df4
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...rometheus-rules/templates/kaas/phoenix/alerting-rules/cloud-provider-controller.rules.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- if eq .Values.managementCluster.provider.flavor "capi" }} | ||
# This rule applies to CAPI management clusters only | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
name: cloud-provider-controller.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: cloud-provider-controller | ||
rules: | ||
- alert: FluxHelmReleaseFailed | ||
annotations: | ||
description: |- | ||
{{`Flux HelmRelease {{ $labels.name }} in ns {{ $labels.exported_namespace }} on {{ $labels.installation }}/{{ $labels.cluster_id }} is stuck in Failed state.`}} | ||
opsrecipe: fluxcd-failing-helmrelease/ | ||
expr: gotk_reconcile_condition{type="Ready", status="False", kind="HelmRelease", cluster_type="management_cluster", exported_namespace!="flux-giantswarm", name=~".*(aws-ebs-csi-driver|cloud-provider-aws|azure-cloud-controller-manager|azure-cloud-node-manager|azuredisk-csi-driver|azurefile-csi-driver|cloud-provider-vsphere|cloud-provider-cloud-director)"} > 0 | ||
for: 20m | ||
labels: | ||
area: kaas | ||
cancel_if_outside_working_hours: "true" | ||
cancel_if_kube_state_metrics_down: "true" | ||
cancel_if_monitoring_agent_down: "true" | ||
severity: page | ||
team: {{ include "providerTeam" . }} | ||
topic: managementcluster | ||
namespace: |- | ||
{{`{{ $labels.exported_namespace }}`}} | ||
{{- end }} |