RabbitMQ Module of Metricbeat giving 503 Service Unavailable Error

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

        - 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

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

Does your rabbitmq require username/password. or SSL?

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