File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,14 @@ fn gather_metrics() -> anyhow::Result<Bytes> {
296
296
Ok ( Bytes :: from ( buffer) )
297
297
}
298
298
299
+ static GAUGE_CLIENTS : Lazy < IntGauge > = Lazy :: new ( || {
300
+ register_int_gauge ! ( "balancer_clients" , "Number of connected websocket clients" ) . unwrap ( )
301
+ } ) ;
302
+
303
+ static COUNTER_HTTP_REQUESTS : Lazy < IntGauge > = Lazy :: new ( || {
304
+ register_int_gauge ! ( "balancer_http_requests" , "Number of HTTP requests received" ) . unwrap ( )
305
+ } ) ;
306
+
299
307
#[ cfg( test) ]
300
308
mod test {
301
309
use super :: * ;
@@ -350,11 +358,3 @@ mod test {
350
358
}
351
359
}
352
360
}
353
-
354
- static GUAGE_CLIENTS : Lazy < IntGauge > = Lazy :: new ( || {
355
- register_int_gauge ! ( "balancer_clients" , "Number of connected websocket clients" ) . unwrap ( )
356
- } ) ;
357
-
358
- static COUNTER_HTTP_REQUESTS : Lazy < IntGauge > = Lazy :: new ( || {
359
- register_int_gauge ! ( "balancer_http_requests" , "Number of HTTP requests received" ) . unwrap ( )
360
- } ) ;
You can’t perform that action at this time.
0 commit comments