Skip to content

Commit

Permalink
Helm: Add ingester config in helm values (#7733)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:
Allow configuring ingester config from helm values:
https://grafana.com/docs/loki/latest/configuration/#ingester
We wanted to change the default chunk_encoding, which right now not
possible in the current values template.

Co-authored-by: Trevor Whitney <trevorjwhitney@gmail.com>
  • Loading branch information
iam404 and trevorwhitney committed Jan 18, 2023
1 parent 94ee5a2 commit 20627ad
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docs/sources/installation/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,15 @@ true
<td><pre lang="json">
"main-5e53303"
</pre>
</td>
</tr>
<tr>
<td>loki.ingester</td>
<td>object</td>
<td>Optional ingester configuration</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: loki
description: Helm chart for Grafana Loki in simple, scalable mode
type: application
appVersion: 2.7.0
version: 4.2.0
version: 4.3.0
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# loki

![Version: 4.2.0](https://img.shields.io/badge/Version-4.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.0](https://img.shields.io/badge/AppVersion-2.7.0-informational?style=flat-square)
![Version: 4.3.0](https://img.shields.io/badge/Version-4.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.0](https://img.shields.io/badge/AppVersion-2.7.0-informational?style=flat-square)

Helm chart for Grafana Loki in simple, scalable mode

Expand Down
8 changes: 8 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ loki:
{{- end }}
{{- end }}
{{- with .Values.loki.ingester }}
ingester:
{{- tpl (. | toYaml) $ | nindent 4 }}
{{- end }}
{{- if .Values.loki.commonConfig}}
common:
{{- toYaml .Values.loki.commonConfig | nindent 2}}
Expand Down Expand Up @@ -288,6 +293,9 @@ loki:
# -- Optional querier configuration
querier: {}

# -- Optional ingester configuration
ingester: {}

enterprise:
# Enable enterprise features, license must be provided
enabled: false
Expand Down

0 comments on commit 20627ad

Please sign in to comment.