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: