From 5d4e591f11e555cac851205fff158ef22f702c33 Mon Sep 17 00:00:00 2001 From: Matthis <99146727+matthisholleville@users.noreply.github.com> Date: Tue, 9 May 2023 11:08:18 +0200 Subject: [PATCH] feat: use correct port to metrics (#390) Signed-off-by: Matthis Holleville --- charts/k8sgpt/templates/service.yaml | 3 +++ charts/k8sgpt/templates/serviceMonitor.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/k8sgpt/templates/service.yaml b/charts/k8sgpt/templates/service.yaml index 76dabf90a8..64912898b0 100644 --- a/charts/k8sgpt/templates/service.yaml +++ b/charts/k8sgpt/templates/service.yaml @@ -16,4 +16,7 @@ spec: - name: http port: 8080 targetPort: 8080 + - name: metrics + port: 8081 + targetPort: 8081 type: {{ .Values.service.type }} diff --git a/charts/k8sgpt/templates/serviceMonitor.yaml b/charts/k8sgpt/templates/serviceMonitor.yaml index 9e4a0ba2d3..28c2fd5783 100644 --- a/charts/k8sgpt/templates/serviceMonitor.yaml +++ b/charts/k8sgpt/templates/serviceMonitor.yaml @@ -13,7 +13,7 @@ spec: endpoints: - honorLabels: true path: /metrics - port: http + port: metrics selector: matchLabels: app.kubernetes.io/name: {{ include "k8sgpt.name" . }}