From 6e930a699fe156840253338354916576a80d0f5e Mon Sep 17 00:00:00 2001 From: Laura Flores Date: Mon, 11 Jul 2022 18:35:13 +0000 Subject: [PATCH] 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 --- src/mon/MonCap.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mon/MonCap.cc b/src/mon/MonCap.cc index 0ff9fefdd156b..aa18d12392503 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") { -- 2.39.5