RabbitMQ metric agent is a RabbitMQ metric publisher plugin for new relic digital intelligent platform. This agent use the New Relic Java Plugin Agent SDK. User can create a jar and host it anywhere as an agent. Then agent will send data to new relic platform. Following metric values are possible to track using this agent.
- Total message count of all queues
- Total ready message count in all queues
- Redelivered message count in all queues
- Return unroutable message count in all queues
- Un-Acknowledge message count in all queues
- Message published rate
- Message delivered rate
- Node status (if node is running graph value will be 1 and otherwise 0)
- Memory usage by the node as a percentage (used_memory/total_memory_limit)
- Total memory usage by the node (present value)
User can change any metric by changing the code.After successfully host the plugin (agent) user can view statistics on new relic plugin dashboard (user may need to configure them)
To use this plugin user need to add following configurations
Create a file called plugin.json under config directory
{
"agents": [
{
"name" : "AGENT_NAME",
"host" : "RABBITMQ_HOST",
"username" : "ADMIN_USERNAME",
"password" : "ADMIN_PASSWORD"
}
]
}
Create a file called newrelic.json under config directory
{
"license_key": "YOUR_LICENSE_KEY_HERE",
"log_level": "LOG_LEVEL",
"log_file_name": "LOG_FILE_NAME",
"log_file_path": "LOG_PATH"
}
Create a jar and run jar using command java -jar JAR_FILE.jar
. Make sure config directory and jar file are in the same directory.
Please go through our wiki page for more instructions.