title: Missing Kafka Connect Metrics using Jmx Exporter for Prometheus
body: <p>I am trying to export kafka connect metrics. My solution consists of running the jmx exporter and exposing them at an endpoint that can then be scraped using Prometheus. Now, I am able to do that for all the metrics that I have tried, but for one set of metrics, it is not working. 
  My config for export for this set of metrics looks like the following </p>
  
  <pre><code>  - pattern: kafka.connect&lt;type=connector-metrics, connector=(.+)&gt;&lt;&gt;([a-z-]+)
      name: kafka_connector_$2
      labels:
        connector: "$1"
      help: "Kafka Connect JMX metric $1"
      type: GAUGE
  </code></pre>
  
  <p>The definition for these metrics according to the official documentation looks like : </p>
  
  <p><code>kafka.connect:type=connector-metrics,connector="{connector}"</code></p>
  
  <p>I guess there is something going wrong with the pattern selection but I am not able to figure out what. Any help or pointers please !!</p>