Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

RabbitMQ agent running, but no stats showing on NewRelic side #80

Open
tylerhenthorn opened this issue Aug 24, 2018 · 0 comments
Open

Comments

@tylerhenthorn
Copy link

I don't see evidence on the NewRelic side that the agent is reporting data. The host it should be reporting from does not appear in the list of hosts on the dashboard. The agent does not appear in the list of agents there, either. I've double-checked that my license key is correct. I can see from logs on the host that the agent is collecting stats, and is connecting to NewRelic.

I am using the latest version of newrelic_pivotal_agent, pulled from master, which is 1.0.5.
The RabbitMQ version is RabbitMQ 3.4.3.

My agent configuration:

newrelic:
  license_key: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  verbose: 1

agents:
  rabbitmq:
    management_api_url: "http://XXX:XXX@localhost:15672"

The RabbitMQ management plugins are enabled:

root@XXX-XXX:~# rabbitmq-plugins enable rabbitmq_management
Plugin configuration unchanged.

Applying plugin configuration to [email protected]... nothing to do.

I can see it gathering stats from RabbitMQ in the logs:

root@XXX-XXX:/opt/newrelic_pivotal_agent-master# ruby pivotal_agent
[2018-08-24 09:05:13 UTC] INFO: Using Ruby SDK version: 1.3.1
[2018-08-24 09:05:13 UTC] INFO: Agent RabbitMQ is at version 1.0.5
[2018-08-24 09:05:13 UTC] INFO: Agent ModBmx is at version 1.0.5
[2018-08-24 09:05:13 UTC] INFO: Agent Redis is at version 1.0.5
[2018-08-24 09:05:13 UTC] DEBUG: Start collecting agent data for poll cycle
[2018-08-24 09:05:14 UTC] DEBUG: Finished collecting agent data for poll cycle
[2018-08-24 09:05:14 UTC] DEBUG: JSON payload: {"agent":{"version":"1.0.5"},"components":[{"name":"localhost:15672","guid":"com.pivotal.newrelic.plugin.rabbitmq","duration":60,"metrics":{"Component/Queued Messages/Ready[messages]":[2590.0,1,2590.0,2590.0,6708100.0],"Component/Queued Messages/Unacknowledged[messages]":[6.0,1,6.0,6.0,36.0],"Component/Message Rate/Acknowledge[messages/sec]":[0.0,1,0.0,0.0,0.0],"Component/Message Rate/Confirm[messages/sec]":[0.0,1,0.0,0.0,0.0],"Component/Message Rate/Deliver[messages/sec]":[0.0,1,0.0,0.0,

[...]

[2018-08-24 09:11:12 UTC] INFO: Gathered 2 statistics from 1 components

I can see the agent process connecting to NewRelic:

root@XXX-XXX:~# strace -p 7980 -f -e trace=network -s 10000
Process 7980 attached with 2 threads

[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(15672), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
Process 8234 attached
[pid  7980] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
[pid  7980] connect(5, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("50.31.164.164")}, 16) = 0
[pid  8234] +++ exited with 0 +++
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant