From 96a5eb306e08fb575ccadf4296ea1f07c1210dea Mon Sep 17 00:00:00 2001 From: Matthis Holleville Date: Tue, 9 May 2023 10:48:06 +0200 Subject: [PATCH] feat: use correct port to metrics 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" . }}