You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
499 B

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