Skip to content

Commit

Permalink
Merge pull request #471 from wallrj/fix-duplicate-prometheus-scrape-t…
Browse files Browse the repository at this point in the history
…argets

BUGFIX: Avoid duplicate Prometheus scrape targets by using a named port in the ServiceMonitor
  • Loading branch information
cert-manager-prow[bot] authored Jul 25, 2024
2 parents 7a407d5 + 6bae8e4 commit 6763400
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 6763400

Please sign in to comment.