]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
prometheus: Remove the Metrics class
authorBoris Ranto <branto@redhat.com>
Thu, 12 Jul 2018 17:01:50 +0000 (19:01 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 17 Jul 2018 20:28:59 +0000 (22:28 +0200)
commitc00dd55f40ab795db3f43522755e49758c9cc737
tree830d64fbd6c6da34134a9772eff816515f6d5e0d
parentd395868d9ef787d98fa1a0f9dd0e84e41d04fd26
prometheus: Remove the Metrics class

The class was introduced to account for the 'pending' mechanism but that
is no longer being used by the code so we no longer need it since it
serves a purpose of a simple dictionary, now.

This simplifies the code and brings a bit of performance improvements
since the Metric classes in the collect method are created only if they
did not exist before.

Signed-off-by: Boris Ranto <branto@redhat.com>
src/pybind/mgr/prometheus/module.py