From 208003b2a0c10370cf071ddd6234e1f835b46b2b Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 14 Sep 2017 16:03:00 -0600 Subject: [PATCH] Mon._get_df_stats(): Sanitize pool names _get_pool_stats() already replaces '.' with '_'; let's copy that behavior Signed-off-by: Zack Cerza --- collectors/mon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/collectors/mon.py b/collectors/mon.py index d6052a8..7c4f09b 100644 --- a/collectors/mon.py +++ b/collectors/mon.py @@ -432,6 +432,8 @@ class Mon(BaseCollector): def _get_df_stats(self): """ get 'ceph df' stats from rados """ raw_stats = self._mon_command('df') + for pool in raw_stats['pools']: + pool['name'] = pool['name'].replace('.', '_') return raw_stats def _get_pool_stats(self): -- 2.47.3