rancher-charts/charts/rancher-logging/3.6.001/templates/serviceMonitor.yaml

19 lines
525 B
YAML
Raw Normal View History

{{ if .Values.monitoring.serviceMonitor.Enabled }}
2020-09-30 23:34:22 +00:00
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "logging-operator.fullname" . }}
namespace: {{ include "logging-operator.namespace" . }}
labels:
{{ include "logging-operator.labels" . | indent 4 }}
spec:
selector:
matchLabels:
{{ include "logging-operator.labels" . | indent 6 }}
endpoints:
- port: http
path: /metrics
namespaceSelector:
matchNames:
- {{ include "logging-operator.namespace" . }}
{{- end }}