Skip to content

Commit

Permalink
[prometheus-pushgateway] allow overriding service port name (#4583)
Browse files Browse the repository at this point in the history
* allow overriding service port name

Signed-off-by: Isaac Nickaein <[email protected]>

* Update charts/prometheus-pushgateway/Chart.yaml

Co-authored-by: zeritti <[email protected]>
Signed-off-by: Isaac Nickaein <[email protected]>

* Empty commit to invoke DCO check

Signed-off-by: zeritti <[email protected]>

---------

Signed-off-by: Isaac Nickaein <[email protected]>
Signed-off-by: zeritti <[email protected]>
Co-authored-by: zeritti <[email protected]>
  • Loading branch information
nickaein and zeritti authored Jun 5, 2024
1 parent db15dcf commit e4e1a6b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-pushgateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v1.8.0"
description: A Helm chart for prometheus pushgateway
name: prometheus-pushgateway
version: 2.12.0
version: 2.13.0
home: https://github.com/prometheus/pushgateway
sources:
- https://github.com/prometheus/pushgateway
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-pushgateway/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ spec:
nodePort: {{ .Values.service.nodePort }}
{{- end }}
protocol: TCP
name: http
name: {{ .Values.service.portName }}
selector:
{{- include "prometheus-pushgateway.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
{{- end }}
spec:
endpoints:
- port: http
- port: {{ .Values.service.portName }}
{{- with .Values.serviceMonitor.interval }}
interval: {{ . }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-pushgateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ service:
port: 9091
targetPort: 9091
# nodePort: 32100
portName: http

# Optional - Can be used for headless if value is "None"
clusterIP: ""
Expand Down

0 comments on commit e4e1a6b

Please sign in to comment.