# RabbitMQ Module of Metricbeat giving 503 Service Unavailable Error

**URL:** <https://discuss.elastic.co/t/rabbitmq-module-of-metricbeat-giving-503-service-unavailable-error/251130>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [October 6, 2020, 1:17pm UTC](https://discuss.elastic.co/t/rabbitmq-module-of-metricbeat-giving-503-service-unavailable-error/251130 "2020-10-06T13:17:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayush\_Agrahari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_agrahari/32/74932_2.png) [@Ayush\_Agrahari](https://discuss.elastic.co/u/Ayush_Agrahari)\
**Post date:** [October 6, 2020, 1:17pm UTC](https://discuss.elastic.co/t/rabbitmq-module-of-metricbeat-giving-503-service-unavailable-error/251130/1 "2020-10-06T13:17:36Z")

</div>

We are trying to setup RabbitMQ module in metricbeat to pull metrics. Please find metricbeat configuration details below

```auto
        - type: kubernetes
          node: ${NODE_NAME}
          scope: cluster
          templates:
          - condition:
              and:
                - equals:
                    kubernetes.labels.app: {{ .Values.dataplane.rabbitmq.label }}
                - equals:
                    kubernetes.namespace: {{ .Values.dataplane.namespace }}
            config:
            - module: rabbitmq
              enabled: true
              metricsets: ["node", "queue", "connection"]
              period: {{ .Values.metricbeat.scrapePeriod }}
              hosts: ["${data.host}:{{ .Values.dataplane.rabbitmq.port }}"]

```

I found below error in metricbeat deployment logs

```auto
2020-10-05T12:31:49.670Z INFO module/wrapper.go:259 Error fetching data for metricset rabbitmq.connection: error in fetch: HTTP error 503 in : 503 Service Unavailable
2020-10-05T12:31:50.174Z INFO module/wrapper.go:259 Error fetching data for metricset rabbitmq.queue: error in fetch: HTTP error 503 in : 503 Service Unavailable
2020-10-05T12:31:53.271Z INFO module/wrapper.go:259 Error fetching data for metricset rabbitmq.node: error in fetch: HTTP error 503 in : 503 Service Unavailable

```

It seemed more service access issue then I also accessed pod and tried to telnet port and ip of rabbit MQ service and did not find any issue there.

Could you please help me how to proceed here ?

FYI - @vamsikrishna_medeti

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [October 6, 2020, 11:37pm UTC](https://discuss.elastic.co/t/rabbitmq-module-of-metricbeat-giving-503-service-unavailable-error/251130/2 "2020-10-06T23:37:39Z")

</div>

Does your rabbitmq require username/password. or SSL?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2020, 1:37am UTC](https://discuss.elastic.co/t/rabbitmq-module-of-metricbeat-giving-503-service-unavailable-error/251130/3 "2020-11-04T01:37:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
