Skip to content

Commit 31f4856

Browse files
committed
fix(helm): expose prometheus metrics port for scraping if enabled
1 parent 5b03881 commit 31f4856

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

charts/pgcat/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ maintainers:
55
- name: PostgresML
66
77
appVersion: "1.3.0"
8-
version: 0.2.5
8+
version: 0.2.6

charts/pgcat/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ spec:
3636
- name: pgcat
3737
containerPort: {{ .Values.configuration.general.port }}
3838
protocol: TCP
39+
{{- if .Values.configuration.general.enable_prometheus_exporter }}
40+
- name: metrics
41+
containerPort: {{ .Values.configuration.general.prometheus_exporter_port }}
42+
protocol: TCP
43+
{{- end }}
3944
livenessProbe:
4045
tcpSocket:
4146
port: pgcat

0 commit comments

Comments
 (0)