master-servicemonitor.yaml 513 B

123456789101112131415161718192021
  1. {{- if .Values.master.metricsPort }}
  2. {{- if .Values.global.monitoring.enabled }}
  3. apiVersion: monitoring.coreos.com/v1
  4. kind: ServiceMonitor
  5. metadata:
  6. name: {{ template "seaweedfs.name" . }}-master
  7. namespace: {{ .Release.Namespace }}
  8. labels:
  9. app: {{ template "seaweedfs.name" . }}
  10. component: master
  11. spec:
  12. endpoints:
  13. - interval: 30s
  14. port: metrics
  15. scrapeTimeout: 5s
  16. selector:
  17. matchLabels:
  18. app: {{ template "seaweedfs.name" . }}
  19. component: master
  20. {{- end }}
  21. {{- end }}