2020-10-15 13:10:22 +00:00
|
|
|
{{- if .Values.volume.metricsPort }}
|
2021-10-03 16:35:04 +00:00
|
|
|
{{- if .Values.global.monitoring.enabled }}
|
2020-10-15 13:10:22 +00:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
name: {{ template "seaweedfs.name" . }}-volume
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: volume
|
|
|
|
spec:
|
|
|
|
endpoints:
|
|
|
|
- interval: 30s
|
|
|
|
port: swfs-volume-metrics
|
|
|
|
scrapeTimeout: 5s
|
|
|
|
selector:
|
|
|
|
app: {{ template "seaweedfs.name" . }}
|
|
|
|
component: volume
|
2021-10-03 16:35:04 +00:00
|
|
|
{{- end }}
|
2020-11-08 00:07:16 +00:00
|
|
|
{{- end }}
|