mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
common: add perf counters descriptions
Sign-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
This commit is contained in:
parent
799e05d86a
commit
43fe246bf7
@ -42,17 +42,17 @@ Throttle::Throttle(CephContext *cct, std::string n, int64_t m, bool _use_perf)
|
||||
|
||||
if (cct->_conf->throttler_perf_counter) {
|
||||
PerfCountersBuilder b(cct, string("throttle-") + name, l_throttle_first, l_throttle_last);
|
||||
b.add_u64_counter(l_throttle_val, "val");
|
||||
b.add_u64_counter(l_throttle_max, "max");
|
||||
b.add_u64_counter(l_throttle_get, "get");
|
||||
b.add_u64_counter(l_throttle_get_sum, "get_sum");
|
||||
b.add_u64_counter(l_throttle_get_or_fail_fail, "get_or_fail_fail");
|
||||
b.add_u64_counter(l_throttle_get_or_fail_success, "get_or_fail_success");
|
||||
b.add_u64_counter(l_throttle_take, "take");
|
||||
b.add_u64_counter(l_throttle_take_sum, "take_sum");
|
||||
b.add_u64_counter(l_throttle_put, "put");
|
||||
b.add_u64_counter(l_throttle_put_sum, "put_sum");
|
||||
b.add_time_avg(l_throttle_wait, "wait");
|
||||
b.add_u64_counter(l_throttle_val, "val", "Currently available throttle");
|
||||
b.add_u64_counter(l_throttle_max, "max", "Max value for throttle");
|
||||
b.add_u64_counter(l_throttle_get, "get", "Gets");
|
||||
b.add_u64_counter(l_throttle_get_sum, "get_sum", "Got data");
|
||||
b.add_u64_counter(l_throttle_get_or_fail_fail, "get_or_fail_fail", "Get blocked during get_or_fail");
|
||||
b.add_u64_counter(l_throttle_get_or_fail_success, "get_or_fail_success", "Successful get during get_or_fail");
|
||||
b.add_u64_counter(l_throttle_take, "take", "Takes");
|
||||
b.add_u64_counter(l_throttle_take_sum, "take_sum", "Taken data");
|
||||
b.add_u64_counter(l_throttle_put, "put", "Puts");
|
||||
b.add_u64_counter(l_throttle_put_sum, "put_sum", "Put data");
|
||||
b.add_time_avg(l_throttle_wait, "wait", "Waiting latency");
|
||||
|
||||
logger = b.create_perf_counters();
|
||||
cct->get_perfcounters_collection()->add(logger);
|
||||
|
Loading…
Reference in New Issue
Block a user