From 50688f63f2c9b9d329eccbf9a737cf726af5fda2 Mon Sep 17 00:00:00 2001 From: paulfantom Date: Thu, 22 Jun 2023 11:27:29 +0200 Subject: [PATCH] allow metrics exposition without ServiceMonitor and not via Service object --- templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/service.yaml b/templates/service.yaml index cc9c5d8..83e82f0 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -38,7 +38,7 @@ spec: {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }} nodePort: {{ .Values.service.nodePort }} {{- end }} -{{- if .Values.metrics.enabled }} +{{- if .Values.metrics.serviceMonitor.enabled }} - port: {{ .Values.metrics.port }} protocol: TCP name: http-metrics