SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
ignore ServiceMonitor when monitoring is disabled
Janikioca04c59ac959
diff --git a/k8s/helm_charts2/templates/filer-servicemonitor.yaml b/k8s/helm_charts2/templates/filer-servicemonitor.yamlindex f07f6ebefe..ed45442dc7 100644--- a/k8s/helm_charts2/templates/filer-servicemonitor.yaml+++ b/k8s/helm_charts2/templates/filer-servicemonitor.yaml@@ -1,4 +1,5 @@{{- if .Values.filer.metricsPort }}+{{- if .Values.global.monitoring.enabled }}apiVersion: monitoring.coreos.com/v1kind: ServiceMonitormetadata:@@ -15,4 +16,5 @@ spec:selector:app: {{ template "seaweedfs.name" . }}component: filer+{{- end }}{{- end }}\ No newline at end of filediff --git a/k8s/helm_charts2/templates/s3-servicemonitor.yaml b/k8s/helm_charts2/templates/s3-servicemonitor.yamlindex 7f18f00f5c..b549893c70 100644--- a/k8s/helm_charts2/templates/s3-servicemonitor.yaml+++ b/k8s/helm_charts2/templates/s3-servicemonitor.yaml@@ -1,4 +1,5 @@{{- if .Values.s3.metricsPort }}+{{- if .Values.global.monitoring.enabled }}apiVersion: monitoring.coreos.com/v1kind: ServiceMonitormetadata:@@ -15,4 +16,5 @@ spec:selector:app: {{ template "seaweedfs.name" . }}component: s3+{{- end }}{{- end }}\ No newline at end of filediff --git a/k8s/helm_charts2/templates/volume-servicemonitor.yaml b/k8s/helm_charts2/templates/volume-servicemonitor.yamlindex 1b286e9b6a..90d70e8de7 100644--- a/k8s/helm_charts2/templates/volume-servicemonitor.yaml+++ b/k8s/helm_charts2/templates/volume-servicemonitor.yaml@@ -1,4 +1,5 @@{{- if .Values.volume.metricsPort }}+{{- if .Values.global.monitoring.enabled }}apiVersion: monitoring.coreos.com/v1kind: ServiceMonitormetadata:@@ -15,4 +16,5 @@ spec:selector:app: {{ template "seaweedfs.name" . }}component: volume+{{- end }}{{- end }}\ No newline at end of file