Skip to content

Commit

Permalink
Refer to the named port of the service to avoid duplicate prometheus …
Browse files Browse the repository at this point in the history
…scrape targets

Signed-off-by: Richard Wall <[email protected]>
  • Loading branch information
wallrj committed Jul 25, 2024
1 parent 7a407d5 commit 6bae8e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
matchNames:
- {{ .Release.Namespace }}
endpoints:
- targetPort: {{ .Values.app.metrics.port }}
- port: metrics
path: "/metrics"
interval: {{ .Values.app.metrics.service.servicemonitor.interval }}
scrapeTimeout: {{ .Values.app.metrics.service.servicemonitor.scrapeTimeout }}
Expand Down

0 comments on commit 6bae8e4

Please sign in to comment.