File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func Prometheus(register prometheus.Registerer) func(http.Handler) http.Handler
27
27
Subsystem : "api" ,
28
28
Name : "concurrent_requests" ,
29
29
Help : "The number of concurrent API requests." ,
30
- }, []string {"path" })
30
+ }, []string {"method" , " path" })
31
31
websocketsConcurrent := factory .NewGaugeVec (prometheus.GaugeOpts {
32
32
Namespace : "coderd" ,
33
33
Subsystem : "api" ,
@@ -82,8 +82,8 @@ func Prometheus(register prometheus.Registerer) func(http.Handler) http.Handler
82
82
83
83
dist = websocketsDist
84
84
} else {
85
- requestsConcurrent .WithLabelValues (path ).Inc ()
86
- defer requestsConcurrent .WithLabelValues (path ).Dec ()
85
+ requestsConcurrent .WithLabelValues (method , path ).Inc ()
86
+ defer requestsConcurrent .WithLabelValues (method , path ).Dec ()
87
87
88
88
dist = requestsDist
89
89
distOpts = []string {method }
You can’t perform that action at this time.
0 commit comments