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

21 lines
497 B
YAML
Raw Normal View History

2020-10-15 13:10:22 +00:00
{{- if .Values.s3.metricsPort }}
{{- 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" . }}-s3
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "seaweedfs.name" . }}
component: s3
spec:
endpoints:
- interval: 30s
port: metrics
2020-10-15 13:10:22 +00:00
scrapeTimeout: 5s
selector:
matchLabels:
app: {{ template "seaweedfs.name" . }}
component: s3
{{- end }}
{{- end }}