From: Paul Cuzner Date: Tue, 22 Sep 2020 02:02:16 +0000 (+1200) Subject: mgr/prometheus: add pool compression stats X-Git-Tag: v14.2.14~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F37563%2Fhead;p=ceph.git 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) --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 362ba900bdbc..25b36c331c6a 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',