diff --git a/server/metrics/prometheus.go b/server/metrics/prometheus.go index d7e7c9ab..b91b5e2a 100644 --- a/server/metrics/prometheus.go +++ b/server/metrics/prometheus.go @@ -33,7 +33,7 @@ func PromHandler() gin.HandlerFunc { handler := promhttp.Handler() return func(c *gin.Context) { - token := server.Config.Prometheus.Token + token := server.Config.Prometheus.AuthToken if token == "" { handler.ServeHTTP(c.Writer, c.Request)