From 6308b4c10859ca0dc38bbb1e2bbc252ef17e3f08 Mon Sep 17 00:00:00 2001 From: Laura Flores Date: Tue, 10 Aug 2021 18:40:32 +0000 Subject: [PATCH] mgr/telemetry: split pool_id by '.' instead of choosing the first character Signed-off-by: Laura Flores --- src/pybind/mgr/telemetry/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/telemetry/module.py b/src/pybind/mgr/telemetry/module.py index a5c8cc6200d5..06cbed9c26ef 100644 --- a/src/pybind/mgr/telemetry/module.py +++ b/src/pybind/mgr/telemetry/module.py @@ -340,7 +340,7 @@ class Module(MgrModule): # their stats pg_dump = self.get('pg_dump') for pg in pg_dump['pg_stats']: - pool_id = pg['pgid'][0:1] + pool_id = pg['pgid'].split('.')[0] if pool_id == curr_pool_id: for metric in pg['stat_sum']: compiled_stats_dict['pool_id'] = int(pool_id) -- 2.47.3