mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-22 08:07:55 +08:00
21 lines
513 B
YAML
21 lines
513 B
YAML
|
{{- if .Values.master.metricsPort }}
|
||
|
{{- if .Values.global.monitoring.enabled }}
|
||
|
apiVersion: monitoring.coreos.com/v1
|
||
|
kind: ServiceMonitor
|
||
|
metadata:
|
||
|
name: {{ template "seaweedfs.name" . }}-master
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
app: {{ template "seaweedfs.name" . }}
|
||
|
component: master
|
||
|
spec:
|
||
|
endpoints:
|
||
|
- interval: 30s
|
||
|
port: metrics
|
||
|
scrapeTimeout: 5s
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: {{ template "seaweedfs.name" . }}
|
||
|
component: master
|
||
|
{{- end }}
|
||
|
{{- end }}
|