From 6a76b9d1da8c8a7699bcb857a40b7325867bee68 Mon Sep 17 00:00:00 2001 From: Ved-vampir Date: Fri, 3 Apr 2015 11:12:10 +0300 Subject: [PATCH] mon: add perf counters description Sign-off-by: Alyona Kiseleva --- src/mon/Paxos.cc | 58 ++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index 95b35388453ea..7e7ec6c09873a 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -77,39 +77,39 @@ void Paxos::init() void Paxos::init_logger() { PerfCountersBuilder pcb(g_ceph_context, "paxos", l_paxos_first, l_paxos_last); - pcb.add_u64_counter(l_paxos_start_leader, "start_leader"); - pcb.add_u64_counter(l_paxos_start_peon, "start_peon"); - pcb.add_u64_counter(l_paxos_restart, "restart"); - pcb.add_u64_counter(l_paxos_refresh, "refresh"); - pcb.add_time_avg(l_paxos_refresh_latency, "refresh_latency"); - pcb.add_u64_counter(l_paxos_begin, "begin"); - pcb.add_u64_avg(l_paxos_begin_keys, "begin_keys"); - pcb.add_u64_avg(l_paxos_begin_bytes, "begin_bytes"); - pcb.add_time_avg(l_paxos_begin_latency, "begin_latency"); + pcb.add_u64_counter(l_paxos_start_leader, "start_leader", "Starts in leader role"); + pcb.add_u64_counter(l_paxos_start_peon, "start_peon", "Starts in peon role"); + pcb.add_u64_counter(l_paxos_restart, "restart", "Restarts"); + pcb.add_u64_counter(l_paxos_refresh, "refresh", "Refreshes"); + pcb.add_time_avg(l_paxos_refresh_latency, "refresh_latency", "Refresh latency"); + pcb.add_u64_counter(l_paxos_begin, "begin", "Started and handled begins"); + pcb.add_u64_avg(l_paxos_begin_keys, "begin_keys", "Keys in transaction on begin"); + pcb.add_u64_avg(l_paxos_begin_bytes, "begin_bytes", "Data in transaction on begin"); + pcb.add_time_avg(l_paxos_begin_latency, "begin_latency", "Latency of begin operation"); pcb.add_u64_counter(l_paxos_commit, "commit", "Commits", "cmt"); - pcb.add_u64_avg(l_paxos_commit_keys, "commit_keys"); - pcb.add_u64_avg(l_paxos_commit_bytes, "commit_bytes"); + pcb.add_u64_avg(l_paxos_commit_keys, "commit_keys", "Keys in transaction on commit"); + pcb.add_u64_avg(l_paxos_commit_bytes, "commit_bytes", "Data in transaction on commit"); pcb.add_time_avg(l_paxos_commit_latency, "commit_latency", "Commit latency", "clat"); - pcb.add_u64_counter(l_paxos_collect, "collect"); - pcb.add_u64_avg(l_paxos_collect_keys, "collect_keys"); - pcb.add_u64_avg(l_paxos_collect_bytes, "collect_bytes"); - pcb.add_time_avg(l_paxos_collect_latency, "collect_latency"); - pcb.add_u64_counter(l_paxos_collect_uncommitted, "collect_uncommitted"); - pcb.add_u64_counter(l_paxos_collect_timeout, "collect_timeout"); - pcb.add_u64_counter(l_paxos_accept_timeout, "accept_timeout"); - pcb.add_u64_counter(l_paxos_lease_ack_timeout, "lease_ack_timeout"); - pcb.add_u64_counter(l_paxos_lease_timeout, "lease_timeout"); - pcb.add_u64_counter(l_paxos_store_state, "store_state"); - pcb.add_u64_avg(l_paxos_store_state_keys, "store_state_keys"); - pcb.add_u64_avg(l_paxos_store_state_bytes, "store_state_bytes"); - pcb.add_time_avg(l_paxos_store_state_latency, "store_state_latency"); - pcb.add_u64_counter(l_paxos_share_state, "share_state"); - pcb.add_u64_avg(l_paxos_share_state_keys, "share_state_keys"); - pcb.add_u64_avg(l_paxos_share_state_bytes, "share_state_bytes"); - pcb.add_u64_counter(l_paxos_new_pn, "new_pn"); - pcb.add_time_avg(l_paxos_new_pn_latency, "new_pn_latency"); + pcb.add_u64_counter(l_paxos_collect, "collect", "Peon collects"); + pcb.add_u64_avg(l_paxos_collect_keys, "collect_keys", "Keys in transaction on peon collect"); + pcb.add_u64_avg(l_paxos_collect_bytes, "collect_bytes", "Data in transaction on peon collect"); + pcb.add_time_avg(l_paxos_collect_latency, "collect_latency", "Peon collect latency"); + pcb.add_u64_counter(l_paxos_collect_uncommitted, "collect_uncommitted", "Uncommitted values in started and handled collects"); + pcb.add_u64_counter(l_paxos_collect_timeout, "collect_timeout", "Collect timeouts"); + pcb.add_u64_counter(l_paxos_accept_timeout, "accept_timeout", "Accept timeouts"); + pcb.add_u64_counter(l_paxos_lease_ack_timeout, "lease_ack_timeout", "Lease acknowledgement timeouts"); + pcb.add_u64_counter(l_paxos_lease_timeout, "lease_timeout", "Lease timeouts"); + pcb.add_u64_counter(l_paxos_store_state, "store_state", "Store a shared state on disk"); + pcb.add_u64_avg(l_paxos_store_state_keys, "store_state_keys", "Keys in transaction in stored state"); + pcb.add_u64_avg(l_paxos_store_state_bytes, "store_state_bytes", "Data in transaction in stored state"); + pcb.add_time_avg(l_paxos_store_state_latency, "store_state_latency", "Storing state latency"); + pcb.add_u64_counter(l_paxos_share_state, "share_state", "Sharings of state"); + pcb.add_u64_avg(l_paxos_share_state_keys, "share_state_keys", "Keys in shared state"); + pcb.add_u64_avg(l_paxos_share_state_bytes, "share_state_bytes", "Data in shared state"); + pcb.add_u64_counter(l_paxos_new_pn, "new_pn", "New proposal number queries"); + pcb.add_time_avg(l_paxos_new_pn_latency, "new_pn_latency", "New proposal number getting latency"); logger = pcb.create_perf_counters(); g_ceph_context->get_perfcounters_collection()->add(logger); } -- 2.39.5