Skip to content

Commit

Permalink
correct prometheus port and scheme annotations if tls is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rigalGit committed Aug 16, 2023
1 parent ab00c03 commit c188b53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/consul/templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ spec:
{{- if (and .Values.global.metrics.enabled .Values.global.metrics.enableAgentMetrics) }}
"prometheus.io/scrape": "true"
"prometheus.io/path": "/v1/agent/metrics"
{{- if .Values.global.tls.enabled }}
"prometheus.io/port": "8501"
"prometheus.io/scheme": "https"
{{- else }}
"prometheus.io/port": "8500"
"prometheus.io/scheme": "http"
{{- end }}
{{- end }}
spec:
{{- if .Values.server.affinity }}
Expand Down

0 comments on commit c188b53

Please sign in to comment.