Skip to content

Commit

Permalink
Make alert rule labels configurable (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplitza authored Sep 23, 2024
1 parent 0b87cbb commit eacf508
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chart/templates/prometheusrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
== 0)
for: 1m
labels:
severity: warning
{{- $.Values.prometheus.rules.labels | toYaml | nindent 12 }}

- alert: ContainerEphemeralStorageUsageReachingLimit
annotations:
Expand Down Expand Up @@ -65,7 +65,7 @@ spec:
== 0)
for: 15m
labels:
severity: warning
{{- $.Values.prometheus.rules.labels | toYaml | nindent 12 }}

- alert: EphemeralStorageVolumeFilledUp
annotations:
Expand All @@ -88,7 +88,7 @@ spec:
== 0)
for: 1m
labels:
severity: warning
{{- $.Values.prometheus.rules.labels | toYaml | nindent 12 }}

- alert: EphemeralStorageVolumeFillingUp
annotations:
Expand Down Expand Up @@ -118,7 +118,7 @@ spec:
== 0)
for: 15m
labels:
severity: warning
{{- $.Values.prometheus.rules.labels | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ prometheus:
enable: false
# -- How many hours in the future to predict filling up of a volume
predictFilledHours: 12
# -- What additional labels to set on alerts
labels:
severity: warning

# -- Enable Pprof
pprof: false
Expand Down

0 comments on commit eacf508

Please sign in to comment.