From: Venky Shankar Date: Wed, 19 May 2021 05:18:51 +0000 (-0400) Subject: mgr/stats: auto generate metrics names from configured metrics X-Git-Tag: v18.0.0~1295^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aaeec93efd2ae03d740299a5b22bb9203fbd7b8d;p=ceph.git mgr/stats: auto generate metrics names from configured metrics Signed-off-by: Venky Shankar --- diff --git a/src/pybind/mgr/stats/fs/perf_stats.py b/src/pybind/mgr/stats/fs/perf_stats.py index 13d2adc8fc1..e6a43cf21d1 100644 --- a/src/pybind/mgr/stats/fs/perf_stats.py +++ b/src/pybind/mgr/stats/fs/perf_stats.py @@ -38,7 +38,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)