Fixed wrong variable name
This commit is contained in:
parent
d78cadbbad
commit
398ca972bc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue