qdrant
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{{- if .Values.metrics.serviceMonitor.enabled }}
|
||||
kind: ServiceMonitor
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "qdrant.labels" . | nindent 4 }}
|
||||
{{- include "qdrant.additionalLabels" . | nindent 4 }}
|
||||
{{- with .Values.metrics.serviceMonitor.additionalLabels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
name: {{ include "qdrant.fullname" . }}
|
||||
{{- with .Values.additionalAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
endpoints:
|
||||
- honorLabels: true
|
||||
interval: {{ .Values.metrics.serviceMonitor.scrapeInterval }}
|
||||
path: {{ .Values.metrics.serviceMonitor.targetPath }}
|
||||
port: {{ .Values.metrics.serviceMonitor.targetPort }}
|
||||
scheme: http
|
||||
scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }}
|
||||
{{- if .Values.metrics.serviceMonitor.metricRelabelings }}
|
||||
metricRelabelings:
|
||||
{{ tpl (toYaml .Values.metrics.serviceMonitor.metricRelabelings | indent 8) . }}
|
||||
{{- end }}
|
||||
{{- if .Values.metrics.serviceMonitor.relabelings }}
|
||||
relabelings:
|
||||
{{ tpl (toYaml .Values.metrics.serviceMonitor.relabelings | indent 8) . }}
|
||||
{{- end }}
|
||||
{{- if .Values.metrics.serviceMonitor.authorization }}
|
||||
authorization:
|
||||
{{ tpl (toYaml .Values.metrics.serviceMonitor.authorization | indent 8) . }}
|
||||
{{- else if .Values.readOnlyApiKey }}
|
||||
authorization:
|
||||
type: Bearer
|
||||
credentials:
|
||||
name: {{ include "qdrant.fullname" . }}-apikey
|
||||
key: read-only-api-key
|
||||
{{- else if .Values.apiKey }}
|
||||
authorization:
|
||||
type: Bearer
|
||||
credentials:
|
||||
name: {{ include "qdrant.fullname" . }}-apikey
|
||||
key: api-key
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "qdrant.labels" . | nindent 6 }}
|
||||
app.kubernetes.io/component: cluster-discovery
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user