Skip to content

Commit

Permalink
Remove metrics server Prometheus scrape annotations if using podMonitor
Browse files Browse the repository at this point in the history
Signed-off-by: Max Howell <maxhowell24@gmail.com>
  • Loading branch information
mhowell24 committed May 25, 2022
1 parent bcbe100 commit 3a76492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keda/templates/22-metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
{{- toYaml .Values.podLabels.metricsAdapter | nindent 8}}
{{- end }}
annotations:
{{- if .Values.prometheus.metricServer.enabled }}
{{- if and .Values.prometheus.metricServer.enabled ( not .Values.prometheus.metricServer.podMonitor.enabled ) }}
prometheus.io/scrape: "true"
prometheus.io/port: {{ .Values.prometheus.metricServer.port | quote }}
prometheus.io/path: {{ .Values.prometheus.metricServer.path }}
Expand Down

0 comments on commit 3a76492

Please sign in to comment.