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
90fb609
commit d48f106
Showing
10 changed files
with
83 additions
and
80 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
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
42 changes: 42 additions & 0 deletions
42
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/aws.node.workload-cluster.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,42 @@ | ||
{{- if eq .Values.managementCluster.provider.flavor "vintage" }} | ||
## TODO Remove when all vintage installations are gone | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
# No need for .Values.mimir.enabled condition - will be gone with Vintage | ||
cluster_type: "workload_cluster" | ||
name: aws.node.workload-cluster.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: aws.node | ||
rules: | ||
- alert: AWSWorkloadClusterNodeTooManyAutoTermination | ||
annotations: | ||
description: '{{`Cluster {{ $labels.cluster_id }} has too many nodes terminated by node auto termination feature in a short time.`}}' | ||
opsrecipe: node-too-many-auto-termination-aws/ | ||
expr: increase(aws_operator_unhealthy_node_termination_count[60m]) > 10 | ||
for: 15m | ||
labels: | ||
area: kaas | ||
cancel_if_cluster_status_creating: "true" | ||
cancel_if_cluster_status_deleting: "true" | ||
cancel_if_cluster_status_updating: "true" | ||
severity: page | ||
team: phoenix | ||
topic: kubernetes | ||
- alert: WorkloadClusterNodeUnexpectedTaintNodeWithImpairedVolumes | ||
annotations: | ||
description: '{{`Node {{ $labels.node }} has unexpected taint NodeWithImpairedVolumes`}}' | ||
opsrecipe: aws-node-taint-NodeWithImpairedVolumes/ | ||
expr: kube_node_spec_taint{key="NodeWithImpairedVolumes"} | ||
for: 30m | ||
labels: | ||
area: kaas | ||
severity: notify | ||
team: {{ include "providerTeam" . }} | ||
topic: kubernetes | ||
{{- end }} |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
48 changes: 0 additions & 48 deletions
48
helm/prometheus-rules/templates/shared/alerting-rules/up.rules.yml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...alerting-rules/kyverno.all.rules.test.yml → ...eld/alerting-rules/kyverno.rules.test.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
rule_files: | ||
- kyverno.all.rules.yml | ||
- kyverno.rules.yml | ||
tests: | ||
- interval: 1m | ||
input_series: | ||
|