Skip to content

Commit

Permalink
fix(prometheus-postgres-exporter): convert port variable to int (prom…
Browse files Browse the repository at this point in the history
…etheus-community#2372)

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

Signed-off-by: sagdeevrr <[email protected]>
  • Loading branch information
SagdeevRR authored and Matiasmct committed May 16, 2023
1 parent 20dfaf8 commit 0f727c4
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: "0.10.1"
description: A Helm chart for prometheus postgres-exporter
name: prometheus-postgres-exporter
version: 3.1.0
version: 3.1.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/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Create the name of the service account to use
Set DATA_SOURCE_URI environment variable
*/}}
{{- define "prometheus-postgres-exporter.data_source_uri" -}}
{{ printf "%s:%s/%s?sslmode=%s&%s" .Values.config.datasource.host .Values.config.datasource.port .Values.config.datasource.database .Values.config.datasource.sslmode .Values.config.datasource.extraParams | trimSuffix "&" | quote }}
{{ printf "%s:%d/%s?sslmode=%s&%s" .Values.config.datasource.host ( .Values.config.datasource.port | int) .Values.config.datasource.database .Values.config.datasource.sslmode .Values.config.datasource.extraParams | trimSuffix "&" | quote }}
{{- end }}

{{/*
Expand Down

0 comments on commit 0f727c4

Please sign in to comment.