Merge pull request #2385 from tboerger/fix-token-name
Fixed wrong variable name
This commit is contained in:
commit
5d7260631e
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