title: Getting Kafka Connect JMX metrics reporting into Datadog
body: <p>I am working won a project involving Kafka Connect.  We have a Kafka Connect cluster running on Kubernetes with some Snowflake connectors already spun up and working.  The part we are having issues with now is trying to get the JMX metrics from the Kafka Connect cluster to report in Datadog.  From my understanding of the Docs (<a href="https://docs.confluent.io/home/connect/monitoring.html#using-jmx-to-monitor-kconnect" rel="nofollow noreferrer">https://docs.confluent.io/home/connect/monitoring.html#using-jmx-to-monitor-kconnect</a>) the workers are already emitting metrics by default and we just need to find a way to get it reported to Datadog.</p>
  <p>In our K8 Configmap we have these values set:</p>
  <pre><code>    CONNECT_KAFKA_JMX_PORT: &quot;9095&quot;
      KAFKA_JMX_PORT: &quot;9095&quot;
      JMX_PORT: &quot;9095&quot;
  </code></pre>
  <p>I have included this launch script where we are setting the KAFKA_JMX_PORT env var:</p>
  <pre><code>export KAFKA_JMX_OPTS=&quot;-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=&lt;redacted&gt; -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT}&quot;
  </code></pre>
  <p>I’ve been looking online and all over Stackoverflow and haven’t actually seen an example of people getting JMX metrics reporting to Datadog and standing up a dashboard there so I was wondering if anyone had experience with this.</p>