summaryrefslogtreecommitdiffstats
path: root/src/msg/async/ProtocolV1.cc
diff options
context:
space:
mode:
authorPere Diaz Bou <pdiazbou@redhat.com>2023-03-06 10:25:21 +0100
committerPere Diaz Bou <pere-altea@hotmail.com>2023-06-05 09:44:01 +0200
commit587ee4225ed41744685a10567e308caaac617425 (patch)
tree5e13df3f26bc1cf366265b3777e5779762bfc3b6 /src/msg/async/ProtocolV1.cc
parentMerge pull request #51908 from zdover23/wip-doc-2023-06-04-rados-operations-p... (diff)
downloadceph-587ee4225ed41744685a10567e308caaac617425.tar.xz
ceph-587ee4225ed41744685a10567e308caaac617425.zip
msgr: AsyncMessenger add faulted connections metrics
Add msgr_connection_idle_timeouts and msgr_connection_ready_timeouts labeled perfcounters to keep track of failed connections with prometheus metrics. Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com> Fixes: https://tracker.ceph.com/issues/59076
Diffstat (limited to 'src/msg/async/ProtocolV1.cc')
-rw-r--r--src/msg/async/ProtocolV1.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/msg/async/ProtocolV1.cc b/src/msg/async/ProtocolV1.cc
index 9376d46b0bd..b45ad8ca515 100644
--- a/src/msg/async/ProtocolV1.cc
+++ b/src/msg/async/ProtocolV1.cc
@@ -2414,6 +2414,7 @@ CtPtr ProtocolV1::replace(const AsyncConnectionRef& existing,
existing->worker->references--;
new_worker->references++;
existing->logger = new_worker->get_perf_counter();
+ existing->labeled_logger = new_worker->get_labeled_perf_counter();
existing->worker = new_worker;
existing->center = new_center;
if (existing->delay_state)