Skip to content

Commit

Permalink
feat(query): add query and profile log config (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac authored Nov 14, 2024
1 parent ebc335e commit 8b62fc4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*/*/charts/
.idea
20 changes: 20 additions & 0 deletions charts/databend-query/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@ data:
[log.stderr]
on = {{ .Values.config.log.stderr.enabled }}
level = {{ .Values.config.log.stderr.level | default "WARN" | quote }}
[log.query]
on = {{ .Values.config.log.query.enabled }}
otlp_endpoint = {{ .Values.config.log.query.otlp_endpoint | quote }}
otlp_protocol = {{ .Values.config.log.query.otlp_protocol | default "http" | quote }}
{{- with .Values.config.log.query.otlp_labels }}
[log.query.otlp_labels]
{{- range $key, $value := . }}
{{ $key }} = {{ $value | quote }}
{{- end }}
{{- end }}
[log.profile]
on = {{ .Values.config.log.profile.enabled }}
otlp_endpoint = {{ .Values.config.log.profile.otlp_endpoint | quote }}
otlp_protocol = {{ .Values.config.log.profile.otlp_protocol | default "http" | quote }}
{{- with .Values.config.log.profile.otlp_labels }}
[log.profile.otlp_labels]
{{- range $key, $value := . }}
{{ $key }} = {{ $value | quote }}
{{- end }}
{{- end }}
[meta]
{{- if .Values.config.meta.generateEndpoints }}
Expand Down
8 changes: 8 additions & 0 deletions charts/databend-query/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ config:
stderr:
enabled: true
level: "WARN"
query:
enabled: false
otlp_endpoint: ""
otlp_protocol: "http"
profile:
enabled: false
otlp_endpoint: ""
otlp_protocol: "http"

# [meta]
meta:
Expand Down

0 comments on commit 8b62fc4

Please sign in to comment.