]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: add get_perf_counter API to fetch the values of labeled counters
authorNaveen Naidu <naveennaidu479@gmail.com>
Wed, 19 Mar 2025 13:56:08 +0000 (19:26 +0530)
committerNaveen Naidu <naveennaidu479@gmail.com>
Tue, 8 Apr 2025 02:26:46 +0000 (07:56 +0530)
commit21d35918fe0968818991b0498063ef8e78e5ac3f
tree892c27f5f5dff285ccbe7be1675ff7c027a2445e
parent6d3cababa19361d2573207bb480552bf52d50271
mgr: add get_perf_counter API to fetch the values of labeled counters

get_perf_counter API loops through the labeled counters present in the
schema that is fetched via get_perf_schema and fetches the latest value
of these counters.

The logic is similar to get_unlabeled_perf_counter, with the only
difference being is that we use the labeled API variants to fetch the
latest value.

Signed-off-by: Naveen Naidu <naveen.naidu@ibm.com>
src/pybind/mgr/mgr_module.py