From: Joshua Blanch Date: Wed, 29 Apr 2026 23:06:48 +0000 (+0000) Subject: msgr/async: make msgr_active_connections counter a gauge X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F68676%2Fhead;p=ceph.git msgr/async: make msgr_active_connections counter a gauge msgr_active_connections tracks the current number of active connections rather than a monotonic total. Register it as a gauge so perf reset does not zero it while live connections may still later decrement the value. Fixes: https://tracker.ceph.com/issues/76339 Signed-off-by: Joshua Blanch --- diff --git a/src/msg/async/Stack.h b/src/msg/async/Stack.h index afb152244bc2..2dca58c607fe 100644 --- a/src/msg/async/Stack.h +++ b/src/msg/async/Stack.h @@ -269,7 +269,7 @@ class Worker { plb.add_u64_counter(l_msgr_send_messages, "msgr_send_messages", "Network sent messages"); plb.add_u64_counter(l_msgr_recv_bytes, "msgr_recv_bytes", "Network received bytes", NULL, 0, unit_t(UNIT_BYTES)); plb.add_u64_counter(l_msgr_send_bytes, "msgr_send_bytes", "Network sent bytes", NULL, 0, unit_t(UNIT_BYTES)); - plb.add_u64_counter(l_msgr_active_connections, "msgr_active_connections", "Active connection number"); + plb.add_u64(l_msgr_active_connections, "msgr_active_connections", "Active connection number"); plb.add_u64_counter(l_msgr_created_connections, "msgr_created_connections", "Created connection number"); plb.add_time(l_msgr_running_total_time, "msgr_running_total_time", "The total time of thread running");