Fix metrics scraping if api key is enabled (#127)

This commit is contained in:
azhelev
2024-01-11 11:21:04 +02:00
committed by GitHub
parent f5cd22e0da
commit 8521d75e95

View File

@@ -23,6 +23,13 @@ spec:
{{- if .Values.metrics.serviceMonitor.relabelings }}
relabelings:
{{ tpl (toYaml .Values.metrics.serviceMonitor.relabelings | indent 8) . }}
{{- end }}
{{- if .Values.apiKey }}
authorization:
type: Bearer
credentials:
name: {{ include "qdrant.fullname" . }}-apikey
key: api-key
{{- end }}
selector:
matchLabels: