]> git.proxmox.com Git - ceph.git/blame - ceph/src/mgr/OSDPerfMetricCollector.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / mgr / OSDPerfMetricCollector.h
CommitLineData
11fdf7f2
TL
1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2// vim: ts=8 sw=2 smarttab
3
4#ifndef OSD_PERF_METRIC_COLLECTOR_H_
5#define OSD_PERF_METRIC_COLLECTOR_H_
6
9f95a23c 7#include "mgr/MetricCollector.h"
11fdf7f2
TL
8#include "mgr/OSDPerfMetricTypes.h"
9
11fdf7f2
TL
10/**
11 * OSD performance query class.
12 */
9f95a23c
TL
13class OSDPerfMetricCollector
14 : public MetricCollector<OSDPerfMetricQuery, OSDPerfMetricLimit, OSDPerfMetricKey,
15 OSDPerfMetricReport> {
11fdf7f2 16public:
9f95a23c 17 OSDPerfMetricCollector(MetricListener &listener);
11fdf7f2 18
9f95a23c 19 void process_reports(const MetricPayload &payload) override;
11fdf7f2
TL
20};
21
22#endif // OSD_PERF_METRIC_COLLECTOR_H_