From c278580d207f0b99daed48afdc689ae77fe73e9b Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 31 Jul 2017 09:24:09 -0400 Subject: [PATCH] mgr: apply a threshold to perf counter prios ...so that we can control the level of load we're putting on ceph-mgr with perf counters. Don't collect anything below PRIO_USEFUL by default. Signed-off-by: John Spray (cherry picked from commit bdc775fdd8acdad5c58ff3065a21396f80ce5db4) --- src/common/options.cc | 11 +++++++++++ src/messages/MMgrConfigure.h | 12 ++++++++++-- src/mgr/DaemonServer.cc | 1 + src/mgr/MgrClient.cc | 26 ++++++++++++++++++++++---- src/mgr/MgrClient.h | 1 + 5 files changed, 45 insertions(+), 6 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 3ae2e0777a0..14d81e9ef1e 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -11,6 +11,9 @@ #include #include +// Definitions for enums +#include "common/perf_counters.h" + void Option::dump_value(const char *field_name, const Option::value_t &v, Formatter *f) const @@ -4042,6 +4045,14 @@ std::vector