mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-24 14:53:03 +08:00
ignore ServiceMonitor when monitoring is disabled
This commit is contained in:
parent
1d2dfe593c
commit
ca04c59ac9
@ -1,4 +1,5 @@
|
|||||||
{{- if .Values.filer.metricsPort }}
|
{{- if .Values.filer.metricsPort }}
|
||||||
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
@ -16,3 +17,4 @@ spec:
|
|||||||
app: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
component: filer
|
component: filer
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
@ -1,4 +1,5 @@
|
|||||||
{{- if .Values.s3.metricsPort }}
|
{{- if .Values.s3.metricsPort }}
|
||||||
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
@ -16,3 +17,4 @@ spec:
|
|||||||
app: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
component: s3
|
component: s3
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
@ -1,4 +1,5 @@
|
|||||||
{{- if .Values.volume.metricsPort }}
|
{{- if .Values.volume.metricsPort }}
|
||||||
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
@ -16,3 +17,4 @@ spec:
|
|||||||
app: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
component: volume
|
component: volume
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
Loading…
Reference in New Issue
Block a user