From 897cffb9d86389c990e65eba1f3ddac1213b0363 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Thu, 31 Oct 2024 14:57:55 +0000 Subject: [PATCH] auth_broker: fix local_proxy conn count (#9593) our current metrics for http pool opened connections is always negative :D oops --- proxy/src/serverless/http_conn_pool.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proxy/src/serverless/http_conn_pool.rs b/proxy/src/serverless/http_conn_pool.rs index 934a50c14f..b92ae31310 100644 --- a/proxy/src/serverless/http_conn_pool.rs +++ b/proxy/src/serverless/http_conn_pool.rs @@ -294,6 +294,11 @@ pub(crate) fn poll_http2_client( conn_id, aux: aux.clone(), }); + Metrics::get() + .proxy + .http_pool_opened_connections + .get_metric() + .inc(); Arc::downgrade(&pool) } @@ -306,7 +311,7 @@ pub(crate) fn poll_http2_client( let res = connection.await; match res { Ok(()) => info!("connection closed"), - Err(e) => error!(%session_id, "connection error: {}", e), + Err(e) => error!(%session_id, "connection error: {e:?}"), } // remove from connection pool