From c5565ad5a0270cbc67516487e3f9197fe7550caf Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Tue, 22 Sep 2020 14:02:16 +1200 Subject: [PATCH] mgr/prometheus: add pool compression stats This patch adds the compress bytes used and stored metrics for each pool, so compression ratios and savings can be easily determined Signed-off-by: Paul Cuzner (cherry picked from commit 2beda1dc9ccb7b3ddf28ec0657eddd26a021b503) --- src/pybind/mgr/prometheus/module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 5923efab4bbf..390828b07bb3 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -62,7 +62,8 @@ def health_status_to_number(status): DF_CLUSTER = ['total_bytes', 'total_used_bytes', 'total_used_raw_bytes'] DF_POOL = ['max_avail', 'stored', 'stored_raw', 'objects', 'dirty', - 'quota_bytes', 'quota_objects', 'rd', 'rd_bytes', 'wr', 'wr_bytes'] + 'quota_bytes', 'quota_objects', 'rd', 'rd_bytes', 'wr', 'wr_bytes', + 'compress_bytes_used', 'compress_under_bytes'] OSD_POOL_STATS = ('recovering_objects_per_sec', 'recovering_bytes_per_sec', 'recovering_keys_per_sec', 'num_objects_recovered', -- 2.47.3