mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
de277418bf
helm read/need only 2
18 lines
449 B
YAML
18 lines
449 B
YAML
{{- if .Values.volume.metricsPort }}
|
|
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
|
|
{{- end }} |