]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr/async: make msgr_active_connections counter a gauge 68676/head
authorJoshua Blanch <joshua.blanch@clyso.com>
Wed, 29 Apr 2026 23:06:48 +0000 (23:06 +0000)
committerJoshua Blanch <joshuamblanch@gmail.com>
Wed, 6 May 2026 14:35:54 +0000 (14:35 +0000)
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 <joshua.blanch@clyso.com>
src/msg/async/Stack.h

index afb152244bc2bbc0b6371732dcc691e3cc5271b8..2dca58c607fe34edd415365191458872128219fa 100644 (file)
@@ -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");