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.
- Loading branch information
1 parent
6a20ebf
commit c64ff05
Showing
12 changed files
with
111 additions
and
57 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
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
2 changes: 2 additions & 0 deletions
2
...heus-rules/templates/kaas/phoenix/alerting-rules/inhibit.aws.management-cluster.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
3 changes: 3 additions & 0 deletions
3
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
49 changes: 49 additions & 0 deletions
49
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,49 @@ | ||
# 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 this when all clusters are migrated to capi | ||
{{- 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
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