summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/stats
diff options
context:
space:
mode:
authorPatrick Donnelly <pdonnell@redhat.com>2021-03-09 22:41:00 +0100
committerPatrick Donnelly <pdonnell@redhat.com>2021-03-09 22:41:00 +0100
commit7edbb3f1c02dc7e735d00d3a4665a9147feab15c (patch)
treed87aa3fd1a3a9e57c1b45ae0ae302601cb2e9997 /src/pybind/mgr/stats
parentMerge PR #39408 into master (diff)
parentmds: add opened files/inodes and pinned i_caps metric payload support (diff)
downloadceph-7edbb3f1c02dc7e735d00d3a4665a9147feab15c.tar.xz
ceph-7edbb3f1c02dc7e735d00d3a4665a9147feab15c.zip
Merge PR #37945 into master
* refs/pull/37945/head: mds: add opened files/inodes and pinned i_caps metric payload support Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'src/pybind/mgr/stats')
-rw-r--r--src/pybind/mgr/stats/fs/perf_stats.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pybind/mgr/stats/fs/perf_stats.py b/src/pybind/mgr/stats/fs/perf_stats.py
index b6e814da352..23b08cb44e8 100644
--- a/src/pybind/mgr/stats/fs/perf_stats.py
+++ b/src/pybind/mgr/stats/fs/perf_stats.py
@@ -30,9 +30,12 @@ MDS_PERF_QUERY_COUNTERS_MAP = OrderedDict({'cap_hit': 0,
'read_latency': 1,
'write_latency': 2,
'metadata_latency': 3,
- 'dentry_lease': 4})
+ 'dentry_lease': 4,
+ 'opened_files': 5,
+ 'pinned_icaps': 6,
+ 'opened_inodes': 7})
MDS_PERF_QUERY_COUNTERS = [] # type: List[str]
-MDS_GLOBAL_PERF_QUERY_COUNTERS = ['cap_hit', 'read_latency', 'write_latency', 'metadata_latency', 'dentry_lease'] # type: List[str]
+MDS_GLOBAL_PERF_QUERY_COUNTERS = ['cap_hit', 'read_latency', 'write_latency', 'metadata_latency', 'dentry_lease', 'opened_files', 'pinned_icaps', 'opened_inodes'] # type: List[str]
QUERY_EXPIRE_INTERVAL = timedelta(minutes=1)