title: kafka consumers registration list in zookeeper
body: <p>I'm using C++ kafka lib to produce/consume messages with kafka - everything works great.</p>
  
  <p>Now I want to monitor my consumer to handle disconnections/failure. I'm looking for kind of connection list of all consumers.</p>
  
  <p>from kafka <a href="http://kafka.apache.org/documentation.html#impl_zkconsumerid" rel="nofollow">documentation</a>:</p>
  
  <blockquote>
    <p><strong>Consumer Id Registry</strong></p>
    
    <p>In addition to the group_id which is shared by all consumers in a
    group, each consumer is given a transient, unique consumer_id (of the
    form hostname:uuid) for identification purposes. Consumer ids are
    registered in the following directory.</p>
  
  <pre><code>/consumers/[group_id]/ids/[consumer_id] --&gt; {"topic1": #streams, ..., "topicN": #streams} (ephemeral node)
  </code></pre>
    
    <p>Each of the consumers in the group registers under its group and
    creates a znode with its consumer_id. The value of the znode contains
    a map of <code>&lt;topic, #streams&gt;</code>. This id is simply used to identify each
    of the consumers which is currently active within a group. This is an
    ephemeral node so it will disappear if the consumer process dies.</p>
  </blockquote>
  
  <p>But when trying to <code>ls /consumers</code> - there's nothing there (my app is up&amp;running and consumers are consume messages via log)</p>