From: John Spray Date: Mon, 31 Jul 2017 13:24:09 +0000 (-0400) Subject: mgr: apply a threshold to perf counter prios X-Git-Tag: v12.2.2~61^2~92 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c278580d207f0b99daed48afdc689ae77fe73e9b;p=ceph.git 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) --- diff --git a/src/common/options.cc b/src/common/options.cc index 3ae2e0777a0a..14d81e9ef1e2 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