Skip to content

Commit

Permalink
Merge pull request #281 from alanjino/main
Browse files Browse the repository at this point in the history
removed CPUThrottlingHigh alrets
  • Loading branch information
akash4sh authored Jun 12, 2024
2 parents 1a34f0b + a30ee41 commit 26d2e58
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
type: application
version: 1.0.12
version: 1.0.13
Original file line number Diff line number Diff line change
Expand Up @@ -225,33 +225,33 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if not (.Values.defaultRules.disabled.CPUThrottlingHigh | default false) }}
- alert: CPUThrottlingHigh
annotations:
{{- if .Values.defaultRules.additionalRuleAnnotations }}
{{ toYaml .Values.defaultRules.additionalRuleAnnotations | indent 8 }}
{{- end }}
{{- if .Values.defaultRules.additionalRuleGroupAnnotations.kubernetesResources }}
{{ toYaml .Values.defaultRules.additionalRuleGroupAnnotations.kubernetesResources | indent 8 }}
{{- end }}
description: '{{`{{`}} $value | humanizePercentage {{`}}`}} throttling of CPU in namespace {{`{{`}} $labels.namespace {{`}}`}} for container {{`{{`}} $labels.container {{`}}`}} in pod {{`{{`}} $labels.pod {{`}}`}}.'
runbook_url: {{ .Values.defaultRules.runbookUrl }}/kubernetes/cputhrottlinghigh
summary: Processes experience elevated CPU throttling.
expr: |-
sum(increase(container_cpu_cfs_throttled_periods_total{container!="", }[5m])) by (container, pod, namespace)
/
sum(increase(container_cpu_cfs_periods_total{}[5m])) by (container, pod, namespace)
> ( 25 / 100 )
for: 15m
labels:
severity: info
{{- if or .Values.defaultRules.additionalRuleLabels .Values.defaultRules.additionalRuleGroupLabels.kubernetesResources }}
{{- with .Values.defaultRules.additionalRuleLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.defaultRules.additionalRuleGroupLabels.kubernetesResources }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}
# {{- if not (.Values.defaultRules.disabled.CPUThrottlingHigh | default false) }}
# - alert: CPUThrottlingHigh
# annotations:
# {{- if .Values.defaultRules.additionalRuleAnnotations }}
# {{ toYaml .Values.defaultRules.additionalRuleAnnotations | indent 8 }}
# {{- end }}
# {{- if .Values.defaultRules.additionalRuleGroupAnnotations.kubernetesResources }}
# {{ toYaml .Values.defaultRules.additionalRuleGroupAnnotations.kubernetesResources | indent 8 }}
# {{- end }}
# description: '{{`{{`}} $value | humanizePercentage {{`}}`}} throttling of CPU in namespace {{`{{`}} $labels.namespace {{`}}`}} for container {{`{{`}} $labels.container {{`}}`}} in pod {{`{{`}} $labels.pod {{`}}`}}.'
# runbook_url: {{ .Values.defaultRules.runbookUrl }}/kubernetes/cputhrottlinghigh
# summary: Processes experience elevated CPU throttling.
# expr: |-
# sum(increase(container_cpu_cfs_throttled_periods_total{container!="", }[5m])) by (container, pod, namespace)
# /
# sum(increase(container_cpu_cfs_periods_total{}[5m])) by (container, pod, namespace)
# > ( 25 / 100 )
# for: 15m
# labels:
# severity: info
# {{- if or .Values.defaultRules.additionalRuleLabels .Values.defaultRules.additionalRuleGroupLabels.kubernetesResources }}
# {{- with .Values.defaultRules.additionalRuleLabels }}
# {{- toYaml . | nindent 8 }}
# {{- end }}
# {{- with .Values.defaultRules.additionalRuleGroupLabels.kubernetesResources }}
# {{- toYaml . | nindent 8 }}
# {{- end }}
# {{- end }}
# {{- end }}
{{- end }}

0 comments on commit 26d2e58

Please sign in to comment.