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" . }}