Skip to content

Commit

Permalink
Fix metrics scraping if api key is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
azhelev committed Jan 10, 2024
1 parent f5cd22e commit 94f093a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/qdrant/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 94f093a

Please sign in to comment.