]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: log time it takes to collect metrics 36581/head
authorPatrick Seidensal <pseidensal@suse.com>
Tue, 9 Jun 2020 13:58:54 +0000 (15:58 +0200)
committerLaura Paduano <lpaduano@suse.com>
Tue, 18 Aug 2020 14:07:49 +0000 (16:07 +0200)
commited6091f9fe895493625351f9f459a993e7856dd6
tree55479b020d1524e34359013581b0c6eef1e2f083
parent3d6d3969fb38a7179b19aeb245f7a1963cd2a315
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>
(cherry picked from commit a5f86cb85fcbf8a9003bf511b57a6d6b4a0e1f41)

 Conflicts:
src/pybind/mgr/mgr_util.py
  - Some more imports in master compared to octopus;
    had to add "import time" (line 6)  manually, otherwise make check
    would fail with a mypy error ('time is not defined')
src/pybind/mgr/mgr_module.py
src/pybind/mgr/mgr_util.py
src/pybind/mgr/prometheus/module.py