mirror of
https://github.com/rustfs/rustfs.git
synced 2026-03-17 14:24:08 +00:00
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:
@@ -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` | |
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user