Skip to content

Commit

Permalink
prometheus-kubernetes-rules: make service label configurable (#6598)
Browse files Browse the repository at this point in the history
* prometheus-kubernetes-rules: make service label configurable

* without value
  • Loading branch information
richardtief authored May 29, 2024
1 parent d068754 commit 4d82217
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion prometheus-rules/prometheus-kubernetes-rules/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: A collection of Prometheus alerting and aggregation rules for Kubernetes.
name: prometheus-kubernetes-rules
version: 1.9.0
version: 1.9.1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: apiserver
meta: "{{`{{ $labels.instance }}`}}"
Expand All @@ -24,7 +24,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: apiserver
meta: "{{`{{ $labels.instance }}`}}"
Expand All @@ -40,7 +40,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: info
context: apiserver
dashboard: kubernetes-health
Expand All @@ -54,7 +54,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
support_group: containers
severity: info
context: apiserver
Expand All @@ -71,7 +71,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: apiserver
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: critical
context: node
meta: "{{`{{ $value }}`}} nodes NotReady"
Expand All @@ -24,7 +24,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: node
meta: "{{`{{ $labels.node }}`}} is NotReady"
Expand All @@ -41,7 +41,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: node
meta: "{{`{{ $labels.node }}`}}"
Expand All @@ -56,7 +56,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: node
dashboard: kubernetes-health
Expand Down Expand Up @@ -99,7 +99,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: system
meta: "{{`{{ $labels.node }}`}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: kubelet
meta: "{{`{{ $labels.node }}`}}"
Expand All @@ -84,7 +84,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: kubelet
meta: "{{`{{ $labels.node }}`}}"
Expand All @@ -102,7 +102,7 @@ groups:
labels:
tier: {{ required ".Values.tier missing" .Values.tier }}
support_group: {{ required ".Values.supportGroup missing" .Values.supportGroup }}
service: k8s
service: {{ required ".Values.service missing" .Values.service }}
severity: warning
context: kubelet
meta: "Many 5xx responses for Kubelet on {{`{{ $labels.node }}`}} "
Expand Down

0 comments on commit 4d82217

Please sign in to comment.