From 98a2f431084c86bdbd5a2be47876f5bd018c24b1 Mon Sep 17 00:00:00 2001 From: MiguelNdeCarvalho Date: Mon, 20 Nov 2023 22:24:57 +0000 Subject: [PATCH] deploy: helm: templates: servicemonitor.yaml: Fix port name --- deploy/helm/templates/servicemonitor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/helm/templates/servicemonitor.yaml b/deploy/helm/templates/servicemonitor.yaml index b96a4fe2f..dac93a494 100644 --- a/deploy/helm/templates/servicemonitor.yaml +++ b/deploy/helm/templates/servicemonitor.yaml @@ -2,7 +2,7 @@ apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: - name: {{ include "altinity-clickhouse-operator.fullname" . }} + name: {{ printf "%s-clickhouse-metrics" (include "altinity-clickhouse-operator.fullname" .) }} namespace: {{ .Release.Namespace }} labels: {{- include "altinity-clickhouse-operator.labels" . | nindent 4 }} @@ -11,7 +11,7 @@ metadata: {{- end }} spec: endpoints: - - port: clickhouse-operator-metrics + - port: clickhouse-metrics selector: matchLabels: {{- include "altinity-clickhouse-operator.selectorLabels" . | nindent 6 }}