mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -188,9 +188,8 @@ func (hs *HttpServer) metricsEndpoint(ctx *macaron.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
promhttp.HandlerFor(prometheus.DefaultGatherer, promhttp.HandlerOpts{
|
promhttp.HandlerFor(prometheus.DefaultGatherer, promhttp.HandlerOpts{}).
|
||||||
DisableCompression: true,
|
ServeHTTP(ctx.Resp, ctx.Req.Request)
|
||||||
}).ServeHTTP(ctx.Resp, ctx.Req.Request)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (hs *HttpServer) healthHandler(ctx *macaron.Context) {
|
func (hs *HttpServer) healthHandler(ctx *macaron.Context) {
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ func Gziper() macaron.Handler {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.HasPrefix(requestPath, "/metrics") {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
ctx.Invoke(macaronGziper)
|
ctx.Invoke(macaronGziper)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user