Skip to content

Commit

Permalink
allow disabling ruler
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Welch <[email protected]>
  • Loading branch information
slim-bean committed Mar 13, 2024
1 parent dc90ccd commit c49af92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion production/helm/loki/templates/ruler/service-ruler.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
{{- if $isDistributed }}
{{- if and $isDistributed .Values.ruler.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
{{- if $isDistributed }}
{{- if and $isDistributed .Values.ruler.enabled }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,8 @@ compactor:

# -- Configuration for the ruler
ruler:
# -- The ruler component is optional and can be disabled if desired.
enabled: true
# -- Number of replicas for the ruler
replicas: 0
# -- hostAliases to add
Expand Down

0 comments on commit c49af92

Please sign in to comment.