<p>I am using the prometheus-community stack.</p>
<p>I have a rabbitmq pod running in my K8s cluster, I have enabled rabbitmq_prometheus from within the pod so I am able to see the time series data of of my rabbitmq from localhost:15692. I have also installed a dashboard in grafana (this <a href="https://grafana.com/grafana/dashboards/10991" rel="nofollow noreferrer">enter link description here</a>) in order to be able to see this data. However I get No Data showing in my RabbitMQ dashboard. as shown below. <a href="https://i.stack.imgur.com/bZZf1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bZZf1.png" alt="enter image description here" /></a>.</p>
<p>I have also installed prometheus-community/prometheus-rabbitmq-exporter, saved the values file locally so that i can make changes to it, currently it looks like this below</p>
<pre><code>prometheus:
  monitor:
    enabled: true
    additionalLabels: {}
    interval: 15s
    namespace: []
  rules:
    enabled: false
    additionalLabels: {}
</code></pre>
<p>I have applied the values file to my helm release however when i do an inspect on it, i still get <strong>enabled: false</strong> I am not sure what I am missing or doing wrong.</p>
<p>How do i show my rabbitmq metrics in grafana ?</p>

floormind
<p>I've not really understood the steps you took to make it work, but I understand your problem is not being able to import RabbitMQ metrics in Prometheus. So here's the solution.</p>
<p>1.Deploy prometheus using <code>kube-prometheus-stack</code> <a href="https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack" rel="nofollow noreferrer">helm chart</a>. As the helm chart comes with &quot;prometheus operator&quot;, it's best to use PodMonitor and/or ServiceMonitor CRD's as they provide far more configuration options. <a href="https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/getting-started.md#include-servicemonitors" rel="nofollow noreferrer">Here's</a> some documentation around that.</p>
<p>Keep default values (as the purpose is just to import RabbitMQ metrics) for most of the stuff, except that set  <code>&quot;prometheus.prometheusSpec.serviceMonitorSelector.matchLabels&quot;</code> with a label value. Something like this</p>
<pre><code>serviceMonitorSelector:
  matchLabels:
    monitoring-platform: core-prometheus
</code></pre>
<p>2.Deploy RabbitMQ using the bitnami rabbitmq <a href="https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq" rel="nofollow noreferrer">helm chart</a>. Again, as the purpose here is just to expose metrics for prometheus to scrape, you can use default values for much of it. Here's the values file:</p>
<pre><code>## Prometheus Metrics
metrics:
  enabled: true
  plugins: 'rabbitmq_prometheus'
  podAnnotations:
    prometheus.io/scrape: 'true'
    prometheus.io/port: '{{ .Values.service.metricsPort }}'

  ## Prometheus Service Monitor
  ## ref: https://github.com/coreos/prometheus-operator
  serviceMonitor:
    enabled: true
    interval: 30s
    additionalLabels:
      monitoring-platform: core-prometheus
</code></pre>
<p>So using the <code>serviceMonitor</code> label (which matches the label of prometheus <code>serviceMonitorSelector</code>) Prometheus identifies RabbitMQ as a target.</p>
<p><a href="https://i.stack.imgur.com/DlbCh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DlbCh.png" alt="prometheus-target" /></a></p>
<p><a href="https://i.stack.imgur.com/tlB7Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tlB7Z.png" alt="grafana-rabbitmq-dashboard" /></a></p>
