mirror of
https://github.com/ceph/ceph
synced 2024-12-16 08:26:25 +00:00
rgw: initialize all the perfcounters, in order
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
parent
e952e10fa2
commit
42f5f02462
@ -21,18 +21,22 @@ int rgw_perf_start(CephContext *cct)
|
||||
{
|
||||
PerfCountersBuilder plb(cct, cct->_conf->name.to_str(), l_rgw_first, l_rgw_last);
|
||||
|
||||
plb.add_u64_counter(l_rgw_req, "req");
|
||||
plb.add_u64_counter(l_rgw_failed_req, "failed_req");
|
||||
|
||||
plb.add_u64_counter(l_rgw_get, "get");
|
||||
plb.add_u64_counter(l_rgw_get_b, "get_b");
|
||||
plb.add_fl_avg(l_rgw_get_lat, "get_initial_lat");
|
||||
plb.add_u64_counter(l_rgw_put, "put");
|
||||
plb.add_u64_counter(l_rgw_put_b, "put_b");
|
||||
plb.add_fl_avg(l_rgw_put_lat, "put_initial_lat");
|
||||
plb.add_u64_counter(l_rgw_cache_hit, "cache_hit");
|
||||
plb.add_u64_counter(l_rgw_cache_miss, "cache_miss");
|
||||
|
||||
plb.add_u64(l_rgw_qlen, "qlen");
|
||||
plb.add_u64(l_rgw_qactive, "qactive");
|
||||
|
||||
plb.add_u64_counter(l_rgw_cache_hit, "cache_hit");
|
||||
plb.add_u64_counter(l_rgw_cache_miss, "cache_miss");
|
||||
|
||||
perfcounter = plb.create_perf_counters();
|
||||
cct->get_perfcounters_collection()->add(perfcounter);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user