Skip to content

Commit 62caeed

Browse files
feat(helm): Support separate loki ruler storage configuration (#18510)
Signed-off-by: Jan-Otto Kröpke <[email protected]> Signed-off-by: Jay Clifford <[email protected]> Co-authored-by: Jay Clifford <[email protected]>
1 parent 827b1f2 commit 62caeed

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

production/helm/loki/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Entries should include a reference to the pull request that introduced the chang
1414
[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)
1515
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` to bloom-planner. [#18552](https://github.com/grafana/loki/pull/18552)
1616

17+
18+
- [FEATURE] Support separate loki ruler storage configuration [#18510](https://github.com/grafana/loki/pull/18510)
19+
1720
## 6.36.1
1821
- [BUGFIX] Fix missing s3 field in lokiStorageConfig templated value.[#18791](https://github.com/grafana/loki/pull/18791)
1922

production/helm/loki/templates/_helpers.tpl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,7 @@ chunk_delimiter: {{ . }}
375375
{{/* Loki ruler config */}}
376376
{{- define "loki.rulerConfig" }}
377377
ruler:
378-
storage:
379-
{{- include "loki.rulerStorageConfig" . | nindent 4}}
380-
{{- if (not (empty .Values.loki.rulerConfig)) }}
381-
{{- toYaml .Values.loki.rulerConfig | nindent 2}}
382-
{{- end }}
378+
{{- mergeOverwrite (dict "storage" (include "loki.rulerStorageConfig" . | fromYaml)) (.Values.loki.rulerConfig | default dict) | toYaml | nindent 2 }}
383379
{{- end }}
384380

385381
{{/* Ruler Thanos Storage Config */}}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema#",
3+
"properties": {
4+
"loki": {
5+
"type": "object",
6+
"properties": {
7+
"rulerConfig": {
8+
"type": ["object", "null"],
9+
"properties": {
10+
"storage": {
11+
"type": ["object", "null"]
12+
}
13+
}
14+
}
15+
}
16+
}
17+
}
18+
}

production/helm/loki/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,10 @@ loki:
528528
index:
529529
prefix: index_
530530
period: 24h
531+
## A separate loki ruler storage configuration can be provided via rulerStorage.storage section:
532+
## rulerConfig:
533+
## storage:
534+
## type: local
531535
# -- Check https://grafana.com/docs/loki/latest/configuration/#ruler for more info on configuring ruler
532536
rulerConfig:
533537
wal:

0 commit comments

Comments
 (0)