1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {{- if .Values.queryScheduler.enabled }}
- {{- with .Values.serviceMonitor }}
- {{- if .enabled }}
- apiVersion: monitoring.coreos.com/v1
- kind: ServiceMonitor
- metadata:
- name: {{ include "loki.querySchedulerFullname" $ }}
- {{- with .namespace }}
- namespace: {{ . }}
- {{- end }}
- {{- with .annotations }}
- annotations:
- {{- toYaml . | nindent 4 }}
- {{- end }}
- labels:
- {{- include "loki.querySchedulerLabels" $ | nindent 4 }}
- {{- with .labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- spec:
- {{- with .namespaceSelector }}
- namespaceSelector:
- {{- toYaml . | nindent 4 }}
- {{- end }}
- selector:
- matchLabels:
- {{- include "loki.querySchedulerSelectorLabels" $ | nindent 6 }}
- endpoints:
- - port: http
- {{- with .interval }}
- interval: {{ . }}
- {{- end }}
- {{- with .scrapeTimeout }}
- scrapeTimeout: {{ . }}
- {{- end }}
- {{- with .relabelings }}
- relabelings:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .metricRelabelings }}
- metricRelabelings:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .scheme }}
- scheme: {{ . }}
- {{- end }}
- {{- with .tlsConfig }}
- tlsConfig:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- end }}
- {{- end }}
- {{- end }}
|