From: Laura Flores Date: Mon, 11 Jul 2022 18:35:13 +0000 (+0000) Subject: mon: give the mgr permission to gather heap and mempool stats from the monitor X-Git-Tag: v17.2.4~54^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d39bcf680b8aa44e24c6fb4e551e419931052e63;p=ceph.git mon: give the mgr permission to gather heap and mempool stats from the monitor Otherwise, we run into an "insufficient caps" situation. Signed-off-by: Laura Flores (cherry picked from commit 6e930a699fe156840253338354916576a80d0f5e) --- diff --git a/src/mon/MonCap.cc b/src/mon/MonCap.cc index e1dc37239659..2f2378f62463 100644 --- a/src/mon/MonCap.cc +++ b/src/mon/MonCap.cc @@ -213,6 +213,9 @@ void MonCapGrant::expand_profile(const EntityName& name) const profile_grants.push_back(MonCapGrant("auth rm")); // tell commands (this is a bit of a kludge) profile_grants.push_back(MonCapGrant("smart")); + // allow the Telemetry module to gather heap and mempool metrics + profile_grants.push_back(MonCapGrant("heap")); + profile_grants.push_back(MonCapGrant("dump_mempools")); } if (profile == "osd" || profile == "mds" || profile == "mon" || profile == "mgr") {