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 shared irsa alert between capa and vintage
- Loading branch information
1 parent
8580020
commit 8607e1c
Showing
5 changed files
with
49 additions
and
55 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
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
47 changes: 47 additions & 0 deletions
47
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/irsa.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,47 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
{{- if not .Values.mimir.enabled }} | ||
cluster_type: "management_cluster" | ||
{{- end }} | ||
name: irsa.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: irsa-operator | ||
rules: | ||
- alert: IRSATooManyErrors | ||
annotations: | ||
description: '{{`IRSA bootstrap for Cluster {{ $labels.cluster_id }} failed.`}}' | ||
opsrecipe: irsa-operator-error/ | ||
## TODO Remove this if all vintage installations are gone | ||
{{- if eq .Values.managementCluster.provider.flavor "capi" }} | ||
dashboard: bdiako8tt1b7kc/capa-agregated-error-logs-for-capa-controllers | ||
{{- end }} | ||
expr: irsa_operator_cluster_errors{cluster_type="management_cluster"} > 0 | ||
for: 10m | ||
labels: | ||
area: kaas | ||
cancel_if_kube_state_metrics_down: "true" | ||
cancel_if_cluster_status_creating: "true" | ||
cancel_if_cluster_status_deleting: "true" | ||
cancel_if_outside_working_hours: "true" | ||
severity: page | ||
team: phoenix | ||
topic: aws | ||
- alert: IRSAACMCertificateExpiringInLessThan60Days | ||
annotations: | ||
description: '{{`IRSA ACM certificate for Cluster {{ $labels.cluster_id }} ({{ $labels.certificate_name }}) will expire in less than 2 months.`}}' | ||
opsrecipe: irsa-acm-certificate-expiring/ | ||
expr: min(irsa_operator_acm_certificate_not_after{cluster_type="management_cluster"}) by (cluster_id, installation, pipeline, provider, certificate_name) - time() < 5184000 | ||
for: 10m | ||
labels: | ||
area: kaas | ||
cancel_if_cluster_status_creating: "true" | ||
cancel_if_cluster_status_deleting: "true" | ||
cancel_if_outside_working_hours: "true" | ||
severity: page | ||
team: phoenix | ||
topic: aws |
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
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