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
b45bd99
commit 04969c1
Showing
10 changed files
with
123 additions
and
81 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
60 changes: 0 additions & 60 deletions
60
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/inhibit.all.rules.yml
This file was deleted.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## TODO Remove with vintage | ||
# This rule applies to vintage aws clusters | ||
{{- if eq .Values.managementCluster.provider.flavor "vintage" }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
name: inhibit.kiam.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: inhibit.kiam | ||
rules: | ||
- alert: InhibitionKiamErrors | ||
annotations: | ||
description: '{{`Kiam on cluster {{ $labels.cluster_id }} has increased error rate.`}}' | ||
expr: increase(kiam_metadata_credential_fetch_errors_total[10m]) > 0 or increase(kiam_metadata_find_role_errors_total[10m]) > 0 or increase(kiam_sts_issuing_errors_total[10m]) > 0 | ||
labels: | ||
area: kaas | ||
kiam_has_errors: "true" | ||
team: phoenix | ||
topic: kiam | ||
{{- 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
30 changes: 30 additions & 0 deletions
30
helm/prometheus-rules/templates/kaas/turtles/alerting-rules/inhibit.capi.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,30 @@ | ||
# This rule applies to all capi management clusters | ||
{{- if eq .Values.managementCluster.provider.flavor "capi" }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
{{- if not .Values.mimir.enabled }} | ||
cluster_type: "management_cluster" | ||
{{- end }} | ||
name: inhibit.capi.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: inhibit.capi | ||
rules: | ||
- alert: InhibitionControlPlaneUnhealthy | ||
annotations: | ||
description: '{{`Control plane of cluster {{ $labels.cluster_id }} is not healthy.`}}' | ||
expr: |- | ||
capi_kubeadmcontrolplane_status_condition{cluster_type="management_cluster", type="ControlPlaneComponentsHealthy", status="False"} == 1 | ||
or capi_kubeadmcontrolplane_status_condition{cluster_type="management_cluster", type="EtcdClusterHealthy", status="False"} == 1 | ||
or capi_kubeadmcontrolplane_status_condition{cluster_type="management_cluster", type="Available", status="False"} == 1 | ||
labels: | ||
area: kaas | ||
cluster_control_plane_unhealthy: "true" | ||
team: turtles | ||
topic: status | ||
{{- end }} |
22 changes: 22 additions & 0 deletions
22
helm/prometheus-rules/templates/kaas/turtles/alerting-rules/inhibit.kubelet.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,22 @@ | ||
# This rule applies to all clusters | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
name: inhibit.kubelet.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: inhibit.kubelet | ||
rules: | ||
- alert: InhibitionKubeletDown | ||
annotations: | ||
description: '{{`Kubelet ({{ $labels.instance }}) is down.`}}' | ||
expr: label_replace(up{app="kubelet"}, "ip", "$1", "instance", "(.+):\\d+") == 0 | ||
labels: | ||
kubelet_down: "true" | ||
area: kaas | ||
topic: kubernetes | ||
team: turtles |
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
21 changes: 21 additions & 0 deletions
21
helm/prometheus-rules/templates/platform/atlas/alerting-rules/inhibit.oncall.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,21 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
name: inhibit.oncall.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: inhibit.oncall | ||
rules: | ||
- alert: InhibitionOutsideWorkingHours | ||
annotations: | ||
description: '{{`Fires outside working hours.`}}' | ||
expr: (hour() <= 7 or hour() >= 16) or (day_of_week() > 5 or day_of_week() < 1) | ||
labels: | ||
area: platform | ||
outside_working_hours: "true" | ||
team: atlas | ||
topic: monitoring |
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