Skip to content

Commit c49af92

Browse files
committed
allow disabling ruler
Signed-off-by: Edward Welch <[email protected]>
1 parent dc90ccd commit c49af92

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

production/helm/loki/templates/ruler/service-ruler.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
2-
{{- if $isDistributed }}
2+
{{- if and $isDistributed .Values.ruler.enabled }}
33
apiVersion: v1
44
kind: Service
55
metadata:

production/helm/loki/templates/ruler/statefulset-ruler.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
2-
{{- if $isDistributed }}
2+
{{- if and $isDistributed .Values.ruler.enabled }}
33
apiVersion: apps/v1
44
kind: StatefulSet
55
metadata:

production/helm/loki/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,8 @@ compactor:
23302330

23312331
# -- Configuration for the ruler
23322332
ruler:
2333+
# -- The ruler component is optional and can be disabled if desired.
2334+
enabled: true
23332335
# -- Number of replicas for the ruler
23342336
replicas: 0
23352337
# -- hostAliases to add

0 commit comments

Comments
 (0)