]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/mirroring: Reorder and format metrics output
authorKotresh HR <khiremat@redhat.com>
Mon, 1 Jun 2026 09:29:31 +0000 (14:59 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 8 Jul 2026 07:15:17 +0000 (12:45 +0530)
commita148fb8a0887405b7607c259fbbf1fc9f8fa0c1c
tree8c5fda3889195bf2dde2587abea7c391117430e6
parentcb40330632f61697f19897539f494f2c883143e5
mgr/mirroring: Reorder and format metrics output

Reorder and format status output to match the output of asok
interface peer_status command. Return metrics under
metrics/<dir>/peer/<uuid> to match the asok peer_status layout,
including {"metrics": {}} when no peers are configured.

Fixes: https://tracker.ceph.com/issues/76686
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 4c19167719caeab7de059bb1ba983e3f16afb5b3)
src/pybind/mgr/mirroring/fs/metrics/format.py [new file with mode: 0644]
src/pybind/mgr/mirroring/fs/metrics/load.py
src/pybind/mgr/mirroring/fs/snapshot_mirror.py