]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: give the mgr permission to gather heap and mempool stats from the monitor
authorLaura Flores <lflores@redhat.com>
Mon, 11 Jul 2022 18:35:13 +0000 (18:35 +0000)
committerLaura Flores <lflores@redhat.com>
Fri, 26 Aug 2022 22:32:21 +0000 (17:32 -0500)
Otherwise, we run into an "insufficient caps" situation.

Signed-off-by: Laura Flores <lflores@redhat.com>
(cherry picked from commit 6e930a699fe156840253338354916576a80d0f5e)

src/mon/MonCap.cc

index e1dc3723965916f5cd0d364ab9b35cf59723727d..2f2378f624631d2640b4484b6041f40bc709f521 100644 (file)
@@ -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") {