]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr, mgr/telemetry: add access to osd commands in mgr and workload metrics to telemetry
authorLaura Flores <lflores@redhat.com>
Fri, 23 Jul 2021 17:40:27 +0000 (17:40 +0000)
committerLaura Flores <lflores@redhat.com>
Wed, 28 Jul 2021 16:09:00 +0000 (16:09 +0000)
commit3b27bac6eec81f33e51b1da3e587c11448d1be22
treeaa26afdd5cc80b7f8e4c36f9658b0cbbacddc990
parent64dbe17fdbb27abd89755c61ef01744da5d683cc
mgr, mgr/telemetry: add access to osd commands in mgr and workload metrics to telemetry

In the manager module (src/pybind/mgr/mgr_module.py), there was a command that allowed access to monitor commands, but there was nothing to access osd commands. I added a new method called osd_command that allows access to the output of commands like "ceph osd.0 perf histogram dump".

In the telemetry module (src/pybind/mgr/telemetry/module.py), I added information that may help to characterize a workload. These changes include:
- io rate: delta in pg stats since last report, including a pg stats summary and some store stats
- stats sum per pool: summed up stats from every pg in a pool
- perf histograms: histogram dump of latency and request size for each osd

Signed-off-by: Laura Flores <lflores@redhat.com>
src/pybind/mgr/mgr_module.py
src/pybind/mgr/telemetry/module.py