mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(metrics): ignore datasource proxy requests
This commit is contained in:
parent
e7b56c6389
commit
4edb31723c
@ -15,7 +15,11 @@ func RequestMetrics() macaron.Handler {
|
|||||||
|
|
||||||
status := rw.Status()
|
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 {
|
switch status {
|
||||||
case 200:
|
case 200:
|
||||||
metrics.M_Api_Status_200.Inc(1)
|
metrics.M_Api_Status_200.Inc(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user