]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: templatize/generalize metrics collection interface
authorVenky Shankar <vshankar@redhat.com>
Tue, 10 Sep 2019 13:49:04 +0000 (09:49 -0400)
committerVenky Shankar <vshankar@redhat.com>
Fri, 6 Dec 2019 03:51:45 +0000 (22:51 -0500)
commitefcebe1eb4ae16ea9c633436e3e105add4a2662c
tree8c841ca2d902b58b6c69fc7d6bcc129e97238cea
parent45907ee258d2db5773d0001c25a901d9f520d6cc
mgr: templatize/generalize metrics collection interface

templatize metrics collection so as to reuse quering routines.
`MetricCollector` can be subclassed and along with implementing
` process_reports()` to process incoming metrics data.

also, generalize metrics data in `MMgrReport` and metric query
configuration in `MMgrConfigure`.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
19 files changed:
src/messages/MMgrConfigure.h
src/messages/MMgrReport.h
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/BaseMgrModule.cc
src/mgr/CMakeLists.txt
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/MetricCollector.cc [new file with mode: 0644]
src/mgr/MetricCollector.h [new file with mode: 0644]
src/mgr/MetricTypes.h [new file with mode: 0644]
src/mgr/MgrClient.cc
src/mgr/MgrClient.h
src/mgr/OSDPerfMetricCollector.cc
src/mgr/OSDPerfMetricCollector.h
src/mgr/OSDPerfMetricTypes.h
src/mgr/Types.h [new file with mode: 0644]
src/osd/OSD.cc
src/osd/OSD.h