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: