Skip to content

Commit

Permalink
Merge c188b53 into backport/NET-2276/prometheus-annotation-fix-https/…
Browse files Browse the repository at this point in the history
…morally-becoming-killdeer
  • Loading branch information
hc-github-team-consul-core authored Aug 29, 2023
2 parents 3611a6b + c188b53 commit 6b7f265
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 6b7f265

Please sign in to comment.