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.
Signed-off-by: QuentinBisson <[email protected]>
- Loading branch information
1 parent
6a20ebf
commit 53be7a7
Showing
9 changed files
with
84 additions
and
60 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
4 changes: 2 additions & 2 deletions
4
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/aws.job.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
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
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
4 changes: 3 additions & 1 deletion
4
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/credentiald.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
1 change: 0 additions & 1 deletion
1
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/inhibit.kiam.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
50 changes: 50 additions & 0 deletions
50
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,50 @@ | ||
# This rule applies to vintage aws or capa management clusters | ||
{{- if or (eq .Values.managementCluster.provider.kind "aws") (eq .Values.managementCluster.provider.kind "capa") }} | ||
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 when 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 | ||
{{- end }} |
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