diff options
Diffstat (limited to 'src/mgr/OSDPerfMetricCollector.h')
-rw-r--r-- | src/mgr/OSDPerfMetricCollector.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mgr/OSDPerfMetricCollector.h b/src/mgr/OSDPerfMetricCollector.h new file mode 100644 index 000000000..c531dbf63 --- /dev/null +++ b/src/mgr/OSDPerfMetricCollector.h @@ -0,0 +1,23 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab + +#ifndef OSD_PERF_METRIC_COLLECTOR_H_ +#define OSD_PERF_METRIC_COLLECTOR_H_ + +#include "mgr/MetricCollector.h" +#include "mgr/OSDPerfMetricTypes.h" + +/** + * OSD performance query class. + */ +class OSDPerfMetricCollector + : public MetricCollector<OSDPerfMetricQuery, OSDPerfMetricLimit, OSDPerfMetricKey, + OSDPerfMetricReport> { +public: + OSDPerfMetricCollector(MetricListener &listener); + + void process_reports(const MetricPayload &payload) override; + int get_counters(PerfCollector *collector) override; +}; + +#endif // OSD_PERF_METRIC_COLLECTOR_H_ |