From 8521d75e9577e57e53031ffd059430ca2bd17a79 Mon Sep 17 00:00:00 2001 From: azhelev Date: Thu, 11 Jan 2024 11:21:04 +0200 Subject: [PATCH] Fix metrics scraping if api key is enabled (#127) --- charts/qdrant/templates/servicemonitor.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/charts/qdrant/templates/servicemonitor.yaml b/charts/qdrant/templates/servicemonitor.yaml index b4d2390..e7e04e9 100644 --- a/charts/qdrant/templates/servicemonitor.yaml +++ b/charts/qdrant/templates/servicemonitor.yaml @@ -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: