Skip to content

Commit

Permalink
fix: use targetPort instead of port on ServiceMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbedrich committed Jun 5, 2023
1 parent ab06c48 commit 78cb8f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion traefik/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ metadata:
spec:
jobLabel: {{ .Values.metrics.prometheus.serviceMonitor.jobLabel | default .Release.Name }}
endpoints:
- port: metrics
- targetPort: metrics
path: /{{ .Values.metrics.prometheus.entryPoint }}
{{- with .Values.metrics.prometheus.serviceMonitor.honorLabels }}
honorLabels: {{ . }}
Expand Down
2 changes: 1 addition & 1 deletion traefik/tests/servicemonitor-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tests:
- contains:
path: spec.endpoints
content:
port: metrics
targetPort: metrics
path: /metrics
enableHttp2: true
followRedirects: true
Expand Down

0 comments on commit 78cb8f1

Please sign in to comment.