Commit 4edb3172 by bergquist

fix(metrics): ignore datasource proxy requests

parent e7b56c63
......@@ -15,7 +15,11 @@ func RequestMetrics() macaron.Handler {
status := rw.Status()
if strings.HasPrefix(req.URL.Path, "/api/") {
if strings.HasPrefix(req.RequestURI, "/api/datasources/proxy") {
return
}
if strings.HasPrefix(req.RequestURI, "/api/") {
switch status {
case 200:
metrics.M_Api_Status_200.Inc(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment