]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/telemetry: improve the formatting of perf histograms in telemetry report
authorLaura Flores <lflores@redhat.com>
Mon, 2 Aug 2021 23:05:26 +0000 (23:05 +0000)
committerLaura Flores <lflores@redhat.com>
Mon, 2 Aug 2021 23:05:26 +0000 (23:05 +0000)
commitf6181ddb585f5540bcc133c7753015aa01379325
tree660ce29701ded20321ab454907eb7226be2caee8
parent278cde8d725fb13c13ab9cecf1b47817a530d019
mgr/telemetry: improve the formatting of perf histograms in telemetry report

Currently, the JSON formatter displays lists vertically rahter than horizontally, which makes it particularly difficult for users to scroll through the perf histograms, much less read/interpret them. With this commit, I wrote a patch within the show() function (the function that is controlled by `ceph telemetry show`) which formats the the lists of ranges and values in the perf histograms as strings. This way, parts of the histogram output is displayed horizontally instead of vertically. This makes the Telemetry report much more human-readable.

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