Fixed wrong variable name

This commit is contained in:
Thomas Boerger 2018-03-27 22:50:55 +02:00
parent d78cadbbad
commit 398ca972bc
No known key found for this signature in database
GPG key ID: 5A388F55283960B6

View file

@ -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)