mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-08-24 02:31:11 +02:00
21 lines
513 B
YAML
21 lines
513 B
YAML
{{- if .Values.volume.metricsPort }}
|
|
{{- if .Values.global.monitoring.enabled }}
|
|
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: metrics
|
|
scrapeTimeout: 5s
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "seaweedfs.name" . }}
|
|
component: volume
|
|
{{- end }}
|
|
{{- end }} |