Skip to content

Commit

Permalink
[SERVICE-MONITOR] Add template value for kratos metric path
Browse files Browse the repository at this point in the history
  • Loading branch information
fleblay committed Nov 27, 2023
1 parent 7fb19cd commit 54b324e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/charts/kratos/templates/service-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ metadata:
{{- end }}
spec:
endpoints:
- path: /admin/metrics/prometheus
- path: {{ .Values.service.admin.metricsPath }}
port: {{ .Values.service.admin.name }}
scheme: {{ .Values.serviceMonitor.scheme }}
interval: {{ .Values.serviceMonitor.scrapeInterval }}
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/kratos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ service:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- Path to the metrics endpoint
metricsPath: /admin/metrics/prometheus

secret:
# -- switch to false to prevent creating the secret
Expand Down

0 comments on commit 54b324e

Please sign in to comment.