Skip to content

Commit

Permalink
[kube-api-server] Configuration of serviceMonitor path
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas POUZAC <[email protected]>
  • Loading branch information
lucaspouzac committed Feb 12, 2025
1 parent 1e108cf commit b727de6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
{{- if .Values.kubeApiServer.serviceMonitor.proxyUrl }}
proxyUrl: {{ .Values.kubeApiServer.serviceMonitor.proxyUrl }}
{{- end }}
{{- if .Values.kubeApiServer.serviceMonitor.path }}
path: {{ .Values.kubeApiServer.serviceMonitor.path }}
{{- end }}
port: https
scheme: https
{{- if .Values.kubeApiServer.serviceMonitor.metricRelabelings }}
Expand Down
4 changes: 4 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,10 @@ kubeApiServer:
##
proxyUrl: ""

## path: path that should be used for scraping. Example /metrics for EKS cluster
##
path: ""

jobLabel: component
selector:
matchLabels:
Expand Down

0 comments on commit b727de6

Please sign in to comment.