File tree Expand file tree Collapse file tree 7 files changed +73
-2
lines changed
docs/sources/installation/helm Expand file tree Collapse file tree 7 files changed +73
-2
lines changed Original file line number Diff line number Diff line change @@ -1707,6 +1707,24 @@ true
1707
1707
<td><pre lang="json">
1708
1708
{}
1709
1709
</pre >
1710
+ </td >
1711
+ </tr>
1712
+ <tr>
1713
+ <td>loki.frontend.scheduler_address</td>
1714
+ <td>string</td>
1715
+ <td></td>
1716
+ <td><pre lang="json">
1717
+ "{{ include \" loki.querySchedulerAddress\" . }}"
1718
+ </pre >
1719
+ </td >
1720
+ </tr>
1721
+ <tr>
1722
+ <td>loki.frontend_worker.scheduler_address</td>
1723
+ <td>string</td>
1724
+ <td></td>
1725
+ <td><pre lang="json">
1726
+ "{{ include \" loki.querySchedulerAddress\" . }}"
1727
+ </pre >
1710
1728
</td >
1711
1729
</tr>
1712
1730
<tr>
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ Entries should include a reference to the pull request that introduced the chang
15
15
16
16
- [ CHANGE] Add clusterLabelOverride for alert label overrides.
17
17
18
+ ## 5.5.3
19
+
20
+ - [ BUGFIX] Fix issue in distribution of queries to available read pods by using k8s service for discovering query-scheduler replicas
21
+
18
22
## 5.5.2
19
23
20
24
- [ BUGFIX] Use $.Release.Namespace consistently
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: loki
3
3
description : Helm chart for Grafana Loki in simple, scalable mode
4
4
type : application
5
5
appVersion : 2.8.2
6
- version : 5.5.2
6
+ version : 5.5.3
7
7
home : https://grafana.github.io/helm-charts
8
8
sources :
9
9
- https://github.com/grafana/loki
Original file line number Diff line number Diff line change 1
1
# loki
2
2
3
- ![ Version: 5.5.2 ] ( https://img.shields.io/badge/Version-5.5.2 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square ) ![ AppVersion: 2.8.2] ( https://img.shields.io/badge/AppVersion-2.8.2-informational?style=flat-square )
3
+ ![ Version: 5.5.3 ] ( https://img.shields.io/badge/Version-5.5.3 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square ) ![ AppVersion: 2.8.2] ( https://img.shields.io/badge/AppVersion-2.8.2-informational?style=flat-square )
4
4
5
5
Helm chart for Grafana Loki in simple, scalable mode
6
6
Original file line number Diff line number Diff line change @@ -762,3 +762,12 @@ enableServiceLinks: false
762
762
{ {- printf " %s" $compactorAddress } }
763
763
{ {- end } }
764
764
765
+ { {/* Determine query-scheduler address */} }
766
+ { {- define " loki.querySchedulerAddress" -} }
767
+ { {- $isSimpleScalable := eq (include " loki.deployment.isScalable" .) " true" -} }
768
+ { {- $schedulerAddress := " " } }
769
+ { {- if and $isSimpleScalable (not .Values.read.legacyReadTarget ) -} }
770
+ { {- $schedulerAddress = printf " query-scheduler-discovery.%s.svc.%s.:9095" .Release.Namespace .Values.global.clusterDomain -} }
771
+ { {- end -} }
772
+ { {- printf " %s" $schedulerAddress } }
773
+ { {- end } }
Original file line number Diff line number Diff line change
1
+ {{- $isSimpleScalable := eq (include "loki.deployment.isScalable" .) "true" -}}
2
+ {{- if and $isSimpleScalable (not .Values.read.legacyReadTarget ) }}
3
+ ---
4
+ apiVersion : v1
5
+ kind : Service
6
+ metadata :
7
+ name : query-scheduler-discovery
8
+ labels :
9
+ {{- include "loki.backendSelectorLabels" . | nindent 4 }}
10
+ prometheus.io/service-monitor : " false"
11
+ spec :
12
+ type : ClusterIP
13
+ clusterIP : None
14
+ publishNotReadyAddresses : true
15
+ ports :
16
+ - name : http-metrics
17
+ port : 3100
18
+ targetPort : http-metrics
19
+ protocol : TCP
20
+ - name : grpc
21
+ port : 9095
22
+ targetPort : grpc
23
+ protocol : TCP
24
+ selector :
25
+ {{- include "loki.backendSelectorLabels" . | nindent 4 }}
26
+ {{- end }}
Original file line number Diff line number Diff line change @@ -207,6 +207,16 @@ loki:
207
207
index_gateway:
208
208
{{- tpl (. | toYaml) $ | nindent 4 }}
209
209
{{- end }}
210
+
211
+ {{- with .Values.loki.frontend }}
212
+ frontend:
213
+ {{- tpl (. | toYaml) $ | nindent 4 }}
214
+ {{- end }}
215
+
216
+ {{- with .Values.loki.frontend_worker }}
217
+ frontend_worker:
218
+ {{- tpl (. | toYaml) $ | nindent 4 }}
219
+ {{- end }}
210
220
# Should authentication be enabled
211
221
auth_enabled : true
212
222
# Extra memberlist configuration
@@ -302,6 +312,10 @@ loki:
302
312
# -- Optional index gateway configuration
303
313
index_gateway :
304
314
mode : ring
315
+ frontend :
316
+ scheduler_address : ' {{ include "loki.querySchedulerAddress" . }}'
317
+ frontend_worker :
318
+ scheduler_address : ' {{ include "loki.querySchedulerAddress" . }}'
305
319
enterprise :
306
320
# Enable enterprise features, license must be provided
307
321
enabled : false
You can’t perform that action at this time.
0 commit comments