12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- {{- with .Values.serviceMonitor }}
- {{- if .enabled }}
- apiVersion: monitoring.coreos.com/v1
- kind: ServiceMonitor
- metadata:
- name: {{ include "loki.queryFrontendFullname" $ }}
- {{- with .namespace }}
- namespace: {{ . }}
- {{- end }}
- {{- with .annotations }}
- annotations:
- {{- toYaml . | nindent 4 }}
- {{- end }}
- labels:
- {{- include "loki.queryFrontendLabels" $ | nindent 4 }}
- {{- with .labels }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- spec:
- {{- with .namespaceSelector }}
- namespaceSelector:
- {{- toYaml . | nindent 4 }}
- {{- end }}
- selector:
- matchLabels:
- {{- include "loki.queryFrontendSelectorLabels" $ | 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 }}
- {{- with .targetLabels }}
- targetLabels:
- {{- toYaml . | nindent 4 }}
- {{- end }}
- {{- end }}
- {{- end }}
|