synapsecns/sanguine

View on GitHub
charts/scribe/templates/servicemonitor.yaml

Summary

Maintainability
Test Coverage
{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") .Values.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: {{ include "scribe.fullname" . }}
  labels:
    {{- include "scribe.labels" . | nindent 4 }}
spec:
  selector:
    matchLabels:
      {{- include "scribe.selectorLabels" . | nindent 6 }}
  endpoints:
    - port: http
      path: /metrics
  namespaceSelector:
    matchNames:
      - {{ .Release.Namespace }}
  jobLabel: app.kubernetes.io/name
{{- end }}