]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/stats: auto generate metrics names from configured metrics
authorVenky Shankar <vshankar@redhat.com>
Wed, 19 May 2021 05:18:51 +0000 (01:18 -0400)
committerNeeraj Pratap Singh <neesingh@redhat.com>
Fri, 16 Sep 2022 04:29:31 +0000 (09:59 +0530)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit aaeec93efd2ae03d740299a5b22bb9203fbd7b8d)

src/pybind/mgr/stats/fs/perf_stats.py

index ebd8857b2579f094e7d9c84eb003c626c970b153..692619b6a6e6e60d32e823ecdecdc1d507d56003 100644 (file)
@@ -41,7 +41,7 @@ MDS_PERF_QUERY_COUNTERS_MAP = OrderedDict({'cap_hit': 0,
                                            'read_io_sizes': 8,
                                            'write_io_sizes': 9})
 MDS_PERF_QUERY_COUNTERS = [] # type: List[str]
-MDS_GLOBAL_PERF_QUERY_COUNTERS = ['cap_hit', 'read_latency', 'write_latency', 'metadata_latency', 'dentry_lease', 'opened_files', 'pinned_icaps', 'opened_inodes', 'read_io_sizes', 'write_io_sizes'] # type: List[str]
+MDS_GLOBAL_PERF_QUERY_COUNTERS = list(MDS_PERF_QUERY_COUNTERS_MAP.keys())
 
 QUERY_EXPIRE_INTERVAL = timedelta(minutes=1)
 REREGISTER_TIMER_INTERVAL = 1