]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: add scrub duration to pg stats 45337/head
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 10 Mar 2022 10:25:37 +0000 (15:55 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Fri, 11 Mar 2022 06:55:27 +0000 (12:25 +0530)
commitbe9f8a15cd490cad9b01556273abe56c2ed7162d
tree9f77c27b1c7a8f8ed038c2cd0554b24ceb2ad4cc
parentdad598dc3e8ff6661fadb0e1896eeb0f68678d57
osd/scrub: add scrub duration to pg stats

Addition of a SCRUB_DURATION field that shows how long the scrub/deep-scrub of a pg took.
This field will be displayed in the output of the "ceph pg dump --format=json" and "ceph pg ls-by-pool --format=json" commands.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/osd/osd_types.cc
src/osd/osd_types.h
src/osd/scrubber/pg_scrubber.cc