From 71fe9149acf12331c1fd0e6b4accde126f02415b Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Mon, 22 Oct 2018 14:46:55 +0300 Subject: [PATCH] mgr: rename ceph df stat columns for both influx and prometheus. Signed-off-by: Igor Fedotov --- doc/mgr/influx.rst | 4 ++-- src/pybind/mgr/influx/module.py | 4 ++-- src/pybind/mgr/prometheus/module.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/mgr/influx.rst b/doc/mgr/influx.rst index 7434b4d8bcc0c..62c643b885d5a 100644 --- a/doc/mgr/influx.rst +++ b/doc/mgr/influx.rst @@ -87,7 +87,7 @@ Pools +---------------+-----------------------------------------------------+ |Counter | Description | +===============+=====================================================+ -|bytes_used | Bytes used in the pool not including copies | +|stored | Bytes stored in the pool not including copies | +---------------+-----------------------------------------------------+ |max_avail | Max available number of bytes in the pool | +---------------+-----------------------------------------------------+ @@ -99,7 +99,7 @@ Pools +---------------+-----------------------------------------------------+ |rd_bytes | Number of bytes read in the pool | +---------------+-----------------------------------------------------+ -|raw_bytes_used | Bytes used in pool including copies made | +|stored_raw | Bytes used in pool including copies made | +---------------+-----------------------------------------------------+ ^^^^ diff --git a/src/pybind/mgr/influx/module.py b/src/pybind/mgr/influx/module.py index 761c53ece5c75..6937cc9fc8c1f 100644 --- a/src/pybind/mgr/influx/module.py +++ b/src/pybind/mgr/influx/module.py @@ -178,12 +178,12 @@ class Module(MgrModule): pool_info = {} df_types = [ - 'bytes_used', + 'stored', 'kb_used', 'dirty', 'rd', 'rd_bytes', - 'raw_bytes_used', + 'stored_raw', 'wr', 'wr_bytes', 'objects', diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 662da96b72b90..71aebf9d5e2a1 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -46,7 +46,7 @@ def health_status_to_number(status): DF_CLUSTER = ['total_bytes', 'total_used_bytes', 'total_objects'] -DF_POOL = ['max_avail', 'bytes_used', 'raw_bytes_used', 'objects', 'dirty', +DF_POOL = ['max_avail', 'stored', 'stored_raw', 'objects', 'dirty', 'quota_bytes', 'quota_objects', 'rd', 'rd_bytes', 'wr', 'wr_bytes'] OSD_FLAGS = ('noup', 'nodown', 'noout', 'noin', 'nobackfill', 'norebalance', -- 2.39.5