<p>I've enabled both exporters:</p>
<ul>
<li>kafka-exporter</li>
<li>kafka-jmx-exporter</li>
</ul>
<p><strong>chart.yaml:</strong></p>
<pre><code>...
dependencies:
  ...
  - name: kafka
    version: 17.1.0
    repository: &quot;@bitnami&quot;
    condition: kafka.enabled
  ...
</code></pre>
<p><strong>values.yaml:</strong></p>
<pre><code>kafka:
  metrics:
    kafka:
      enabled: true
    jmx:
      enabled: true
    serviceMonitor:
      enabled: true
      labels:
        my.custom.label/service-monitor: &quot;1.0&quot;
</code></pre>
<p>I see that both of them are appeared on status-&gt;Service Discovery page of Prometheus so I consider them working.</p>
<p>Next step: I add following grafana dashboard: <a href="https://grafana.com/grafana/dashboards/12483" rel="nofollow noreferrer">https://grafana.com/grafana/dashboards/12483</a></p>
<p>But most of metrics(not all) are not available on that dashboard.
<a href="https://i.stack.imgur.com/2kqxQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2kqxQ.jpg" alt="enter image description here" /></a>
For example one of the panel uses <code>jvm_memory_bytes_used</code> metric but I don't see this metric on prometheus side</p>
<p>How can I fix it ?</p>

gstackoverflow
<p>CPU and memory load would need to come from a different exporter (e.g. <a href="https://github.com/prometheus/node_exporter" rel="nofollow noreferrer"><code>node_exporter</code></a>)  or for related pod/container metrics within k8s, then <code>cAdvisor</code>.</p>
<blockquote>
<p>For example one of the panel uses <code>jvm_memory_bytes_used</code> metric but I don't see this metric on prometheus side</p>
</blockquote>
<p>Unclear what Datasource your Grafana dashboard is using. If it is Prometheus, then you will want to first ensure you are querying within the appropriate time range. But only after you manually grep the metrics endpoint that is being scraped to ensure your JMX exporter is actually reporting that data.</p>
