Closed retskcud closed 10 years ago
I got it working. In the "newrelic_plugin.yml" file, the license_key parameter needed to be indented under the 'newrelic' header.
newrelic: verbose: 1 license_key: 1234567890 agents: rabbitmq: management_api_url: http://guest:guest@localhost:15672 debug: true
I couldn't find out what this 400 error means? I didn''t change any of the agents code. Could it be the license code?
[2013-12-06 11:35:12 UTC] INFO: Gathered 2 statistics from 1 components [2013-12-06 11:36:12 UTC] DEBUG: Start collecting agent data for poll cycle [2013-12-06 11:36:12 UTC] DEBUG: Finished collecting agent data for poll cycle [2013-12-06 11:36:12 UTC] DEBUG: JSON payload: {"agent":{"version":"1.0.4"},"com ponents":[{"name":"localhost:15672","guid":"com.pivotal.newrelic.plugin.rabbitmq ","duration":60,"metrics":{"Component/Queued Messages/Ready[messages]":[1.0,1,1. 0,1.0,1.0],"Component/Queued Messages/Unacknowledged[messages]":[0.0,1,0.0,0.0,0 .0],"Component/Message Rate/Acknowledge[messages/sec]":[0.0,1,0.0,0.0,0.0],"Comp onent/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,0.0],"Component/Message Rate/Publish [messages/sec]":[0.0,1,0.0,0.0,0.0],"Component/Message Rate/Return[messages/sec] ":[0.0,1,0.0,0.0,0.0],"Component/Node/File Descriptors[file_descriptors]":[0.0,1 ,0.0,0.0,0.0],"Component/Node/Sockets[sockets]":[18.0,1,18.0,18.0,324.0],"Compon ent/Node/Erlang Processes[processes]":[457.0,1,457.0,457.0,208849.0],"Component/ Node/Memory Used[bytes]":[41844304.0,1,41844304.0,41844304.0,1750945777244416.0] }}]} [2013-12-06 11:36:12 UTC] ERROR: FAILED[400] https://platform-api.newrelic.com/ platform/v1/metrics: no data returned [2013-12-06 11:36:12 UTC] INFO: Gathered 2 statistics from 1 components