File tree Expand file tree Collapse file tree 5 files changed +49
-44
lines changed Expand file tree Collapse file tree 5 files changed +49
-44
lines changed Original file line number Diff line number Diff line change 16
16
]
17
17
},
18
18
"description" : " Search pod logs stored in Loki" ,
19
- "editable" : false ,
19
+ "editable" : true ,
20
20
"fiscalYearStartMonth" : 0 ,
21
21
"graphTooltip" : 0 ,
22
22
"id" : 31 ,
Original file line number Diff line number Diff line change 16
16
]
17
17
},
18
18
"description" : " Search systemd logs stored in Loki" ,
19
- "editable" : false ,
19
+ "editable" : true ,
20
20
"fiscalYearStartMonth" : 0 ,
21
21
"graphTooltip" : 0 ,
22
22
"id" : 33 ,
Original file line number Diff line number Diff line change @@ -193,3 +193,45 @@ kube_prometheus_stack_release_values: >-
193
193
kube_prometheus_stack_release_defaults |
194
194
combine(kube_prometheus_stack_release_overrides, recursive = True)
195
195
}}
196
+
197
+ kube_prometheus_stack_loki_release_values :
198
+ loki :
199
+ nodeSelector :
200
+ clusterrole : server
201
+ image :
202
+ tag : " {{ kube_prometheus_stack_loki_image_tag }}"
203
+ grafana :
204
+ sidecar :
205
+ datasources :
206
+ enabled : false
207
+ promtail :
208
+ config :
209
+ snippets :
210
+ extraScrapeConfigs : |
211
+ - job_name: journal
212
+ journal:
213
+ path: /var/log/journal
214
+ max_age: 12h
215
+ labels:
216
+ job: systemd-journal
217
+ relabel_configs:
218
+ - source_labels: ['__journal__systemd_unit']
219
+ target_label: 'unit'
220
+ - source_labels: ['__journal__hostname']
221
+ target_label: 'hostname'
222
+ - source_labels: ['__journal_priority_keyword']
223
+ target_label: level
224
+ extraVolumes :
225
+ - name : journal
226
+ hostPath :
227
+ path : /var/log/journal
228
+ - name : machine-id
229
+ hostPath :
230
+ path : /etc/machine-id
231
+ extraVolumeMounts :
232
+ - name : journal
233
+ mountPath : /var/log/journal
234
+ readOnly : true
235
+ - name : machine-id
236
+ mountPath : /etc/machine-id
237
+ readOnly : true
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ kube_prometheus_stack_wait_timeout: 5m
20
20
kube_prometheus_stack_metrics_image_tag : v2.12.0
21
21
kube_prometheus_stack_patch_image_tag : v20221220-controller-v1.5.1-58-g787ea74b6
22
22
23
+ kube_prometheus_stack_loki_chart_version : 2.10.2
24
+ kube_prometheus_stack_loki_image_tag : 2.9.3
25
+
23
26
control_ip : " {{ hostvars[groups['control'].0].ansible_host }}"
24
27
25
28
grafana_auth_anonymous : false
Original file line number Diff line number Diff line change 180
180
kubernetes.core.helm :
181
181
chart_ref : loki-stack
182
182
chart_repo_url : https://grafana.github.io/helm-charts
183
- chart_version : 2.10.2
183
+ chart_version : " {{ kube_prometheus_stack_loki_chart_version }} "
184
184
release_name : loki
185
185
release_namespace : " {{ kube_prometheus_stack_release_namespace }}"
186
- release_values :
187
- loki :
188
- nodeSelector :
189
- clusterrole : server
190
- image :
191
- tag : 2.9.3
192
- grafana :
193
- sidecar :
194
- datasources :
195
- enabled : false
196
- promtail :
197
- config :
198
- snippets :
199
- extraScrapeConfigs : |
200
- - job_name: journal
201
- journal:
202
- path: /var/log/journal
203
- max_age: 12h
204
- labels:
205
- job: systemd-journal
206
- relabel_configs:
207
- - source_labels: ['__journal__systemd_unit']
208
- target_label: 'unit'
209
- - source_labels: ['__journal__hostname']
210
- target_label: 'hostname'
211
- - source_labels: ['__journal_priority_keyword']
212
- target_label: level
213
- extraVolumes :
214
- - name : journal
215
- hostPath :
216
- path : /var/log/journal
217
- - name : machine-id
218
- hostPath :
219
- path : /etc/machine-id
220
- extraVolumeMounts :
221
- - name : journal
222
- mountPath : /var/log/journal
223
- readOnly : true
224
- - name : machine-id
225
- mountPath : /etc/machine-id
226
- readOnly : true
186
+ release_values : " {{ kube_prometheus_stack_loki_release_values }}"
227
187
wait : yes
228
188
229
189
- name : Install kube-prometheus-stack on target Kubernetes cluster
You can’t perform that action at this time.
0 commit comments