]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/prometheus: add pool compression stats 37563/head
authorPaul Cuzner <pcuzner@redhat.com>
Tue, 22 Sep 2020 02:02:16 +0000 (14:02 +1200)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Oct 2020 08:45:44 +0000 (10:45 +0200)
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 <pcuzner@redhat.com>
(cherry picked from commit 2beda1dc9ccb7b3ddf28ec0657eddd26a021b503)

src/pybind/mgr/prometheus/module.py

index 362ba900bdbce0c5592d34295b226105a5d9fff3..25b36c331c6ae19d27aabeded683cfe2bf509797 100644 (file)
@@ -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',