title: MBean nested object name in JMX
body: <p>I've noticed that some MBeans have nested keys; how do I make the query to get that key?</p>
  <p>The image below shows an example:</p>
  <p><a href="https://i.stack.imgur.com/LRcyb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LRcyb.png" alt="enter image description here" /></a></p>
  <p>Normally, the MBean query is like this: <code>&quot;org.apache.cassandra.metrics:type=CQL,name=RegularStatementsExecuted&quot;</code></p>
  <p>How do I add the additional folder to that query? I've tried the following:</p>
  <pre><code>&quot;org.apache.cassandra.metrics:type=Cache,CounterCache,name=Capacity&quot;
  &quot;org.apache.cassandra.metrics:type=Cache.CounterCache,name=Capacity&quot;
  &quot;org.apache.cassandra.metrics:type=Cache,type=CounterCache,name=Capacity&quot;
  </code></pre>
  <p>Any ideas?</p>
  <p>I looked over <a href="https://www.oracle.com/java/technologies/javase/management-extensions-best-practices.html" rel="nofollow noreferrer">Java Management Extensions (JMX) Best Practices</a> and it doesn't mention anything about nested keys.</p>