feat: add metrics support in helm chart (#2109)

Signed-off-by: houseme <housemecn@gmail.com>
Co-authored-by: houseme <housemecn@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
majinghe
2026-03-10 12:08:36 +08:00
committed by GitHub
parent 296efea42f
commit 67e5f5e3c3
3 changed files with 11 additions and 2 deletions
+6 -2
View File
@@ -41,5 +41,9 @@ data:
RUSTFS_TLS_KEYLOG: "1"
RUSTFS_TLS_PATH: "/opt/tls"
{{- end }}
# RUSTFS_MTLS_CLIENT_CERT: "/opt/tls/client_cert.pem"
# RUSTFS_MTLS_CLIENT_KEY: "/opt/tls/client_key.pem"
{{- if .Values.config.rustfs.metrics.enabled }}
RUSTFS_OBS_METRIC_ENDPOINT: {{ .Values.config.rustfs.metrics.endpoint | quote }}
{{- else }}
RUSTFS_OBS_METRIC_ENDPOINT: ""
RUSTFS_OBS_METRICS_EXPORT_ENABLED: "false"
{{- end }}
+3
View File
@@ -72,6 +72,9 @@ config:
# size: 100 # Default value: 100 MB
# time: hour # Default value: hour, eg: day,hour,minute,second
# keep_files: 30 # number of rotated log files to keep
metrics:
enabled: false
endpoint: "" # If specified, rustfs will export metrics to this OTLP endpoint. e.g. "http://localhost:4318/v1/metrics"
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
serviceAccount: