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

21 lines
509 B
YAML
Raw Normal View History

2020-10-15 21:10:22 +08:00
{{- if .Values.filer.metricsPort }}
{{- if .Values.global.monitoring.enabled }}
2020-10-15 21:10:22 +08:00
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "seaweedfs.name" . }}-filer
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "seaweedfs.name" . }}
component: filer
spec:
endpoints:
- interval: 30s
port: metrics
2020-10-15 21:10:22 +08:00
scrapeTimeout: 5s
selector:
matchLabels:
app: {{ template "seaweedfs.name" . }}
component: filer
{{- end }}
2020-10-15 21:10:22 +08:00
{{- end }}