]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/prometheus: log time it takes to collect metrics
authorPatrick Seidensal <pseidensal@suse.com>
Tue, 9 Jun 2020 13:58:54 +0000 (15:58 +0200)
committerPatrick Seidensal <pseidensal@suse.com>
Fri, 10 Jul 2020 08:19:13 +0000 (10:19 +0200)
commita5f86cb85fcbf8a9003bf511b57a6d6b4a0e1f41
tree9966520e854bca78b62ad504ee0f60e13bf2775c
parentc757bc862dbfc4f62443e0150b2d74ee554ee1ed
mgr/prometheus: log time it takes to collect metrics

When debug is enabled, the time it takes to gather the various types of
metrics is logged by type.

Fixes: https://tracker.ceph.com/issues/46444
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
src/pybind/mgr/mgr_module.py
src/pybind/mgr/mgr_util.py
src/pybind/mgr/prometheus/module.py