Skip to content

Commit

Permalink
[prometheus-postgres-exporter] add namespace by default to the kubect…
Browse files Browse the repository at this point in the history
…l port-forward command (#5081)

Signed-off-by: yurhasko <[email protected]>
  • Loading branch information
yurhasko authored Dec 23, 2024
1 parent 619b91c commit ec4df82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v0.16.0"
description: A Helm chart for prometheus postgres-exporter
name: prometheus-postgres-exporter
version: 6.8.0
version: 6.8.1
home: https://github.com/prometheus-community/postgres_exporter
sources:
- https://github.com/prometheus-community/postgres_exporter
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "prometheus-postgres-exporter.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl port-forward $POD_NAME 8080:9187
kubectl port-forward $POD_NAME 8080:9187 --namespace {{ .Release.Namespace }}
{{- end }}

0 comments on commit ec4df82

Please sign in to comment.