Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

RabbitMQ NRI on-host plugin not sending queue samples

rabbitmq

#1

New Relic Infrastructure Question Template

  • Which version of Windows or which distribution of Linux are you using?
    Ubuntu 16 Xenial

  • What language version of the APM agent are you using?
    NRI agent (newrelic-infra ubuntu package)

  • What is your Infrastructure Subscription level? Essentials or PRO?
    PRO

  • Describe what you are seeing. How does this differ from what you expected to see?

Queue data is not appearing

Here is the service status:

sudo service newrelic-infra status
● newrelic-infra.service - New Relic Infrastructure Agent
   Loaded: loaded (/etc/systemd/system/newrelic-infra.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-02-12 18:39:52 UTC; 17min ago
 Main PID: 11255 (newrelic-infra)
    Tasks: 11
   Memory: 10.6M (limit: 1.0G)
      CPU: 4.670s
   CGroup: /system.slice/newrelic-infra.service
           └─11255 /usr/bin/newrelic-infra

Feb 12 18:39:52 ip-172-31-32-132 systemd[1]: Stopped New Relic Infrastructure Agent.
Feb 12 18:39:52 ip-172-31-32-132 systemd[1]: Started New Relic Infrastructure Agent.
Feb 12 18:39:52 ip-172-31-32-132 newrelic-infra[11255]: time="2019-02-12T18:39:52Z" level=info msg="New Relic Infrastructure Agent version 1.2.6 Creating Service (820.202µs)"
Feb 12 18:39:52 ip-172-31-32-132 newrelic-infra[11255]: time="2019-02-12T18:39:52Z" level=info msg="Agent service manager started successfully. (2.046049ms)" service=newrelic-infra
Feb 12 18:39:52 ip-172-31-32-132 newrelic-infra[11255]: time="2019-02-12T18:39:52Z" level=info msg="New Relic Infrastructure Agent version 1.2.6 Initializing (2.339013ms)"
Feb 12 18:39:53 ip-172-31-32-132 newrelic-infra[11255]: time="2019-02-12T18:39:53Z" level=info msg="New Relic Infrastructure Agent version 1.2.6 Running (812.751872ms)"

Here is the plugin configuration:

integration_name: com.newrelic.rabbitmq

instances:
  - name: rabbit@ip-172-31-32-132.sa-east-1.compute.internal
    command: all
    arguments:
      hostname: rabbit@ip-172-31-32-132
      port: 15672
      username: mysecretusername
      password: mysecretpassword
      config_path: /etc/rabbitmq/rabbitmq.config
      queues: '["prod.queue1", "prod.queue2", "prod.queue3"]'
      exchanges: '["amq.default"]'
      vhosts: '["/"]'
    labels:
      env: production
      role: rabbitmq

#2

Hi @silva96, could you confirm what version of RabbitMQ you are using, and make sure you have all the prerequisites setup up as per our Compatibility requirements doc :slight_smile:


#3

Hi @rdouglas

$ cat /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"

$ sudo rabbitmqctl status

Status of node rabbit@ip-172-31-32-132 ...
[{pid,5308},
 {running_applications,
     [{rabbitmq_management,"RabbitMQ Management Console","3.7.11"},
      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.11"},
      {amqp_client,"RabbitMQ AMQP Client","3.7.11"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.11"},
      {rabbit,"RabbitMQ","3.7.11"},
      {rabbit_common,
          "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
          "3.7.11"},
      {sysmon_handler,"Rate-limiting system_monitor event handler","1.1.0"},
      {cowboy,"Small, fast, modern HTTP server.","2.6.1"},
      {ranch,"Socket acceptor pool for TCP protocols.","1.7.1"},
      {ssl,"Erlang/OTP SSL application","9.1.2"},
      {public_key,"Public key infrastructure","1.6.4"},
      {asn1,"The Erlang ASN1 compiler version 5.0.8","5.0.8"},
      {recon,"Diagnostic tools for production use","2.3.6"},
      {os_mon,"CPO  CXC 138 46","2.4.7"},
      {cowlib,"Support library for manipulating Web protocols.","2.7.0"},
      {crypto,"CRYPTO","4.4"},
      {inets,"INETS  CXC 138 49","7.0.5"},
      {jsx,"a streaming, evented json parsing toolkit","2.9.0"},
      {xmerl,"XML parser","1.3.19"},
      {mnesia,"MNESIA  CXC 138 12","4.15.5"},
      {lager,"Erlang logging framework","3.6.5"},
      {goldrush,"Erlang event stream processor","0.1.9"},
      {compiler,"ERTS  CXC 138 10","7.3.1"},
      {syntax_tools,"Syntax tools","2.1.6"},
      {sasl,"SASL  CXC 138 11","3.3"},
      {stdlib,"ERTS  CXC 138 10","3.7"},
      {kernel,"ERTS  CXC 138 10","6.2"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:64] [hipe]\n"},
 {memory,
     [{connection_readers,3828048},
      {connection_writers,312932},
      {connection_channels,917788},
      {connection_other,11042092},
      {queue_procs,593080},
      {queue_slave_procs,0},
      {plugins,5370892},
      {other_proc,25342020},
      {metrics,929148},
      {mgmt_db,5182704},
      {mnesia,154816},
      {other_ets,3115408},
      {binary,33167008},
      {msg_index,29360},
      {code,23207568},
      {atom,1172689},
      {other_system,10328783},
      {allocated_unused,58253504},
      {reserved_unallocated,0},
      {strategy,rss},
      {total,[{erlang,124694336},{rss,148578304},{allocated,182947840}]}]},
 {alarms,[]},
 {listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{http,15672,"::"}]},
 {vm_memory_calculation_strategy,rss},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,838141542},
 {disk_free_limit,50000000},
 {disk_free,4260909056},
 {file_descriptors,
     [{total_limit,32668},
      {total_used,138},
      {sockets_limit,29399},
      {sockets_used,135}]},
 {processes,[{limit,1048576},{used,1862}]},
 {run_queue,1},
 {uptime,62962},
 {kernel,{net_ticktime,60}}]

So my rabbitmq version is 3.7.11 with erlang 21.

root user has access to ctl

ubuntu@ip-172-31-32-132:~$ sudo -Hiu root
root@ip-172-31-32-132:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
root@ip-172-31-32-132:~# which rabbitmqctl
/usr/sbin/rabbitmqctl
root@ip-172-31-32-132:~# rabbitmqctl status
Status of node rabbit@ip-172-31-32-132 ...
[{pid,5308},
...

#4

@rdouglas I don’t see any metrics at all now by the way.


#5

Hi @silva96, we may actually need to take this to a ticket to collect logs so i’ll open up one for you now :slight_smile:


#6

Ok perfect, tell me if you need anything from our side.
Thanks


#7

Please do post back here when you get a resolution to your ticket @silva96 :smiley:


#8

This issue is fixed in the latest version 1.0.3 of NR RabbitMQ integration. This update seems to have resolved the issue with RabbitmqQueueSample not reporting.

Instructions to update the integration be found in our docs