]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/prometheus: add pool compression stats 37289/head
authorPaul Cuzner <pcuzner@redhat.com>
Tue, 22 Sep 2020 02:02:16 +0000 (14:02 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Tue, 22 Sep 2020 02:02:16 +0000 (14:02 +1200)
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>
src/pybind/mgr/prometheus/module.py

index e9c734b8f8a99240079532c6b1a77847a9a57520..f50751a6774241a801c1e6820a44da639d82e6cc 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',