summaryrefslogtreecommitdiffstats
path: root/src/mds/MetricAggregator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds/MetricAggregator.h')
-rw-r--r--src/mds/MetricAggregator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mds/MetricAggregator.h b/src/mds/MetricAggregator.h
index fe9aef2e3..6d48756f7 100644
--- a/src/mds/MetricAggregator.h
+++ b/src/mds/MetricAggregator.h
@@ -11,6 +11,7 @@
#include "msg/msg_types.h"
#include "msg/Dispatcher.h"
#include "common/ceph_mutex.h"
+#include "common/perf_counters.h"
#include "include/common_fwd.h"
#include "messages/MMDSMetrics.h"
@@ -55,6 +56,7 @@ private:
// drop this lock when calling ->send_message_mds() else mds might
// deadlock
ceph::mutex lock = ceph::make_mutex("MetricAggregator::lock");
+ CephContext *m_cct;
MDSRank *mds;
MgrClient *mgrc;
@@ -72,6 +74,9 @@ private:
bool stopping = false;
+ PerfCounters *m_perf_counters;
+ std::map<std::pair<entity_inst_t, mds_rank_t>, PerfCounters*> client_perf_counters;
+
void handle_mds_metrics(const cref_t<MMDSMetrics> &m);
void refresh_metrics_for_rank(const entity_inst_t &client, mds_rank_t rank,