]> 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)
committerDavid Zafman <dzafman@redhat.com>
Thu, 27 Feb 2020 21:12:45 +0000 (13:12 -0800)
commit74c2b732717ba5150e359a0462973da874f33e9e
tree1455c37cc8b85208c15d5a832d70f3cec9a8e5f8
parent563811a0f60ad225c0f38b7359f84667043c2017
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>
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