We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9df11a commit 7590f52Copy full SHA for 7590f52
sgl-router/src/router.rs
@@ -842,6 +842,8 @@ impl Router {
842
if let Ok(mut queue) = running_queue.lock() {
843
if let Some(count) = queue.get_mut(worker_url) {
844
*count = count.saturating_sub(1);
845
+ gauge!("sgl_router_running_requests", "worker" => worker_url.to_string())
846
+ .set(*count as f64);
847
}
848
849
@@ -874,6 +876,7 @@ impl Router {
874
876
let mut locked_queue = running_queue.lock().unwrap();
875
877
let count = locked_queue.get_mut(&worker_url).unwrap();
878
879
+ gauge!("sgl_router_running_requests", "worker" => worker_url.to_string()).set(*count as f64);
880
debug!("Streaming is done!!")
881
882
}),
0 commit comments