]> 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>
Tue, 23 Jun 2026 15:19:29 +0000 (20:49 +0530)
commit4c19167719caeab7de059bb1ba983e3f16afb5b3
tree008d32824725e7ff4dae24a0d2745efe5da25df0
parent33c572242ba78924df3e65f9fec23f2aefe81c66
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>
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