mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:12:24 +08:00
fix(metrics): ignore datasource proxy requests
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user