Skip to content

Commit e86f02f

Browse files
committed
Switch to the more default /metrics path
/balancer/metrics was more of a legacy choice as this path used to be on the public port
1 parent 7031383 commit e86f02f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/balancer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func StartInternalServer(handler http.Handler, logger *slog.Logger) {
124124

125125
func StartMetricsServer(logger *slog.Logger) {
126126
metricsRouter := http.NewServeMux()
127-
metricsRouter.Handle("GET /balancer/metrics", promhttp.Handler())
127+
metricsRouter.Handle("GET /metrics", promhttp.Handler())
128128
logger.Info("Starting metrics server on :8081")
129129
metricServer := &http.Server{
130130
Addr: ":8081",

helm/multi-juicer/templates/balancer/servicemonitor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ spec:
1919
type: metrics
2020
endpoints:
2121
- port: metrics
22-
path: '/balancer/metrics'
23-
{{- end }}
22+
path: '/metrics'
23+
{{- end }}

helm/multi-juicer/tests/__snapshot__/multijuicer_test.yaml.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ full values render out correctly:
797797
name: balancer
798798
spec:
799799
endpoints:
800-
- path: /balancer/metrics
800+
- path: /metrics
801801
port: metrics
802802
selector:
803803
matchLabels:

0 commit comments

Comments
 (0)