summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/stats
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2021-05-19 07:19:34 +0200
committerVenky Shankar <vshankar@redhat.com>2022-02-09 08:51:25 +0100
commitb2bc45223b02ded7a5cc921980b3961c5e1d5893 (patch)
tree9eed7b8b22d465f8266c4abe3fbda1403caba74d /src/pybind/mgr/stats
parentmgr/stats: auto generate metrics names from configured metrics (diff)
downloadceph-b2bc45223b02ded7a5cc921980b3961c5e1d5893.tar.xz
ceph-b2bc45223b02ded7a5cc921980b3961c5e1d5893.zip
mgr/stats: include average latencies and stdev in `perf stat` dump
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'src/pybind/mgr/stats')
-rw-r--r--src/pybind/mgr/stats/fs/perf_stats.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pybind/mgr/stats/fs/perf_stats.py b/src/pybind/mgr/stats/fs/perf_stats.py
index e6a43cf21d1..813aee67c5b 100644
--- a/src/pybind/mgr/stats/fs/perf_stats.py
+++ b/src/pybind/mgr/stats/fs/perf_stats.py
@@ -36,7 +36,13 @@ MDS_PERF_QUERY_COUNTERS_MAP = OrderedDict({'cap_hit': 0,
'pinned_icaps': 6,
'opened_inodes': 7,
'read_io_sizes': 8,
- 'write_io_sizes': 9})
+ 'write_io_sizes': 9,
+ 'avg_read_latency': 10,
+ 'stdev_read_latency': 11,
+ 'avg_write_latency': 12,
+ 'stdev_write_latency': 13,
+ 'avg_metadata_latency': 14,
+ 'stdev_metadata_latency': 15})
MDS_PERF_QUERY_COUNTERS = [] # type: List[str]
MDS_GLOBAL_PERF_QUERY_COUNTERS = list(MDS_PERF_QUERY_COUNTERS_MAP.keys())