Skip to content

Commit

Permalink
fix(meta): adjust logging config (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Jan 23, 2025
1 parent c59b0d6 commit e1f1623
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ jobs:
- name: Collect Logs
if: always()
run: |
kubectl logs -n databend-meta -l app.kubernetes.io/name=databend-meta
kubectl logs -n tenant1 -l app.kubernetes.io/name=databend-query
kubectl logs --tail=1000 -n databend-meta -l app.kubernetes.io/name=databend-meta
kubectl logs --tail=1000 -n tenant1 -l app.kubernetes.io/name=databend-query
17 changes: 1 addition & 16 deletions charts/databend-meta/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,10 @@ keywords:
- meta
- kv

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.8
version: 0.10.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v1.2.680"

dependencies:
Expand Down
15 changes: 8 additions & 7 deletions charts/databend-meta/templates/_config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ grpc_api_address = "0.0.0.0:{{ .Values.service.ports.grpc }}"

[log]
[log.stderr]
on = true
level = {{ .Values.config.stdLogLevel | quote }}
prefix_filter = {{ .Values.config.logPrefixFilter | quote }}
on = {{ .Values.config.log.stderr.enabled }}
level = {{ .Values.config.log.stderr.level | quote }}
format = {{ .Values.config.log.stderr.format | quote }}
[log.file]
level = {{ .Values.config.logLevel | quote }}
format = "json"
dir = {{ .Values.config.logDir | quote }}
prefix_filter = {{ .Values.config.logPrefixFilter | quote }}
on = {{ .Values.config.log.file.enabled }}
level = {{ .Values.config.log.file.level | quote }}
format = {{ .Values.config.log.file.format | quote }}
dir = {{ .Values.config.log.file.dir | quote }}
prefix_filter = {{ .Values.config.log.file.prefixFilter | quote }}

[raft_config]
cluster_name = {{ .Values.config.clusterName | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/databend-meta/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if not .Values.existingConfigMaps }}
{{- if not .Values.existingConfigMap }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
17 changes: 12 additions & 5 deletions charts/databend-meta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
bootstrap: false
replicaCount: 1

# This value should be the name of the file containing the statup script for your Databend-meta pods.
# This value should be the name of the file containing the statup script for your Databend-meta pods.
# You will still need to mount your script as an extra volumes.
customStartupScript: false

Expand Down Expand Up @@ -67,11 +67,18 @@ podMonitor:

# would be ignored if `existingConfigMap` is set
config:
log:
file:
enabled: false
level: INFO
format: json
dir: /data/databend-meta/log
prefixFilter: ""
stderr:
enabled: true
format: text
level: WARN
clusterName: databend
logDir: /data/databend-meta/log
logLevel: INFO
logPrefixFilter: ""
stdLogLevel: WARN
raft:
dir: /data/databend-meta/raft

Expand Down

0 comments on commit e1f1623

Please sign in to comment.