From a9fcc62097b82e1df5cc16fb78bcdebf0ab11d0d Mon Sep 17 00:00:00 2001 From: luinnar Date: Fri, 12 Feb 2016 11:47:53 +0100 Subject: [PATCH] ~ fix for ceph infernalis --- src/collectors/ceph/ceph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/collectors/ceph/ceph.py b/src/collectors/ceph/ceph.py index b1e38f875..9bbcdd91b 100644 --- a/src/collectors/ceph/ceph.py +++ b/src/collectors/ceph/ceph.py @@ -302,7 +302,9 @@ def _publish_stats(self, counter_prefix, stats, schema, name_class): """ for path, stat_type in flatten_dictionary(schema): # remove 'stat_type' component to get metric name - assert path[-1] == 'type' + if path[-1] != 'type': + continue + del path[-1] if stat_type & _PERFCOUNTER_LONGRUNAVG: