]> 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>
Mon, 5 Sep 2022 13:46:41 +0000 (19:16 +0530)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit aaeec93efd2ae03d740299a5b22bb9203fbd7b8d)

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

index 089479cdec6e886d8172bae1874d71c7a3a96f7e..3b73bf16cc897a3d76a3f1e972e3bb8bd12db1fc 100644 (file)
@@ -39,7 +39,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