Skip to content

Commit

Permalink
feat: use correct port to metrics (#390)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
  • Loading branch information
matthisholleville committed May 9, 2023
1 parent 9f494fa commit 5d4e591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/k8sgpt/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ spec:
- name: http
port: 8080
targetPort: 8080
- name: metrics
port: 8081
targetPort: 8081
type: {{ .Values.service.type }}
2 changes: 1 addition & 1 deletion charts/k8sgpt/templates/serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
endpoints:
- honorLabels: true
path: /metrics
port: http
port: metrics
selector:
matchLabels:
app.kubernetes.io/name: {{ include "k8sgpt.name" . }}
Expand Down

0 comments on commit 5d4e591

Please sign in to comment.