Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(meta): adjust logging config #124

Merged
merged 6 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading