Skip to content

Commit

Permalink
fix: prometheus port is the targetPort
Browse files Browse the repository at this point in the history
  • Loading branch information
almog8k committed Dec 10, 2024
1 parent d576191 commit 54c6bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- end }}
{{- if $metrics.enabled }}
prometheus.io/port: {{ $metrics.prometheus.port | quote }}
prometheus.io/port: {{ .Values.env.targetPort | quote }}
prometheus.io/scrape: {{ $metrics.prometheus.scrape | quote }}
{{- end }}
{{- if .Values.podAnnotations }}
Expand Down

0 comments on commit 54c6bf4

Please sign in to comment.