Browse Source

ignore ServiceMonitor when monitoring is disabled

pull/2353/head
Janikio 3 years ago
parent
commit
ca04c59ac9
No known key found for this signature in database GPG Key ID: 12FB1516BA8637D0
  1. 2
      k8s/helm_charts2/templates/filer-servicemonitor.yaml
  2. 2
      k8s/helm_charts2/templates/s3-servicemonitor.yaml
  3. 2
      k8s/helm_charts2/templates/volume-servicemonitor.yaml

2
k8s/helm_charts2/templates/filer-servicemonitor.yaml

@ -1,4 +1,5 @@
{{- if .Values.filer.metricsPort }}
{{- if .Values.global.monitoring.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
@ -16,3 +17,4 @@ spec:
app: {{ template "seaweedfs.name" . }}
component: filer
{{- end }}
{{- end }}

2
k8s/helm_charts2/templates/s3-servicemonitor.yaml

@ -1,4 +1,5 @@
{{- if .Values.s3.metricsPort }}
{{- if .Values.global.monitoring.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
@ -16,3 +17,4 @@ spec:
app: {{ template "seaweedfs.name" . }}
component: s3
{{- end }}
{{- end }}

2
k8s/helm_charts2/templates/volume-servicemonitor.yaml

@ -1,4 +1,5 @@
{{- if .Values.volume.metricsPort }}
{{- if .Values.global.monitoring.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
@ -16,3 +17,4 @@ spec:
app: {{ template "seaweedfs.name" . }}
component: volume
{{- end }}
{{- end }}
Loading…
Cancel
Save