]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: set PRIO_USEFUL on num_sessions counter 18537/head
authorJohn Spray <john.spray@redhat.com>
Wed, 25 Oct 2017 13:41:56 +0000 (09:41 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 25 Oct 2017 13:47:34 +0000 (09:47 -0400)
This is used by dashboard and status modules,
so let's make sure we're sending it to the mgr.

Fixes: http://tracker.ceph.com/issues/21927
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/SessionMap.cc

index 9d0bd4c87b66849adc640cd9872f2912ac0cbc77..581b0509cac9c4d0b0f985fab44c1ef5195db9db 100644 (file)
@@ -47,7 +47,7 @@ void SessionMap::register_perfcounters()
   PerfCountersBuilder plb(g_ceph_context, "mds_sessions",
       l_mdssm_first, l_mdssm_last);
   plb.add_u64(l_mdssm_session_count, "session_count",
-      "Session count");
+      "Session count", "sess", PerfCountersBuilder::PRIO_USEFUL);
   plb.add_u64_counter(l_mdssm_session_add, "session_add",
       "Sessions added");
   plb.add_u64_counter(l_mdssm_session_remove, "session_remove",