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

View File

@@ -31,6 +31,8 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
| config.rustfs.log_rotation.size | int | `"100"` | Default log rotation size mb for rustfs. |
| config.rustfs.log_rotation.time | string | `"hour"` | Default log rotation time for rustfs. |
| config.rustfs.log_rotation.keep_files | int | `"30"` | Default log keep files for rustfs. |
| config.rustfs.metrics.enabled | bool | `true` | Toggle metrics export. |
| config.rustfs.metrics.endpoint | string | `""` | Dedicated metrics endpoint. |
| containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
| containerSecurityContext.readOnlyRootFilesystem | bool | `true` | |
| containerSecurityContext.runAsNonRoot | bool | `true` | |

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 }}

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: