Skip to content

Commit 5e71c79

Browse files
committed
update helm chart
Signed-off-by: Bob Du <[email protected]>
1 parent abcd676 commit 5e71c79

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

charts/kafka-exporter/templates/deployment.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,16 @@ spec:
7373
{{- end }}
7474
{{- end }}
7575
{{- if .Values.kafkaExporter.log }}
76-
- --verbosity={{ .Values.kafkaExporter.log.verbosity }}
76+
{{- if .Values.kafkaExporter.log.level }}
77+
- --log.level={{ .Values.kafkaExporter.log.level }}
78+
{{- end }}
79+
{{- if .Values.kafkaExporter.log.format }}
80+
- --log.format={{ .Values.kafkaExporter.log.format }}
7781
{{- end }}
7882
{{- if .Values.kafkaExporter.log.enableSarama }}
7983
- --log.enable-sarama
8084
{{- end }}
85+
{{- end }}
8186
ports:
8287
- name: metrics
8388
containerPort: 9308

charts/kafka-exporter/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ kafkaExporter:
3737
keyFile: ""
3838

3939
log:
40-
verbosity: 0
40+
level: "info" # Log level: debug, info, warn, error
41+
format: "logfmt" # Log format: logfmt, json
4142
enableSarama: false
4243

4344
prometheus:

0 commit comments

Comments
 (0)