]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon mgr osd: Add dump_osd_times interface for python
authorDavid Zafman <dzafman@redhat.com>
Fri, 10 Jan 2020 23:42:19 +0000 (23:42 +0000)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 May 2020 16:38:21 +0000 (18:38 +0200)
commit4c48ba4e4dd9f91135e86979b092c9644dba902e
treecccbd689d5683577c12584620a8bf72bd1842c21
parent1751f2fc406b1f3cdc380fe0a09faf513b538a7c
mon mgr osd: Add dump_osd_times interface for python

The dump_osd_times interface is here for future use of a manager module.
The osd_stats and pg_dump python interfaces don't return network ping
information.

User facing ping time information is formatted 3 decimal places
Use dump_float() (low overhead) for network ping times
   used by python dump_osd_times and dump commands like
   "ceph --formet=json pg dump osds" which for now yields output like
   >>>> "1min": 0.61599999999999999,

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 74c2b732717ba5150e359a0462973da874f33e9e)

Conflicts:
src/osd/osd_types.h
- omit 'ceph::' prefix in nautilus
src/mgr/ActivePyModules.cc
src/mon/PGMap.cc
src/mon/PGMap.h
src/osd/osd_types.cc
src/osd/osd_types.h
src/pybind/mgr/mgr_module.py
src/pybind/mgr/selftest/module.py