This is a quick reference to get to Jolokia statistics urls for JBoss Fuse or JBoss A-MQ statistics. Sometimes, when you are interested in very specific attributes, it's easier to keep monitoring a specific url rather than loading the full Hawtio console.
Commonly used MBeans, Objects, Attribute and Operation names for ActiveMQ are available here: http://activemq.apache.org/jmx.html
Jolokia reference: https://jolokia.org/reference/html/protocol.html
Note: Unless specifically mentioned, all POST requests are to url http://localhost:8181/hawtio/jolokia
http://localhost:8181/hawtio/jolokia/list
{
"type":"LIST"
}
http://localhost:8181/hawtio/jolokia/search/org.apache.activemq:*
{
"type":"SEARCH",
"mbean":"org.apache.activemq:*"
}
http://localhost:8181/hawtio/jolokia/exec/org.apache.activemq:type=Broker,brokerName=amq/addQueue/MyAwesomeQueue
http://localhost:8182/hawtio/jolokia/exec/org.apache.activemq:type=Broker,brokerName=amq,destinationType=Queue,destinationName=MyAwesomeQueue/purge
{
"type":"exec",
"mbean":"org.apache.activemq:type=Broker,brokerName=amq",
"operation":"addQueue",
"arguments":["MyAwesomeQueue"]
}
{
"type":"exec",
"mbean":"org.apache.activemq:type=Broker,brokerName=amq,destinationType=Queue,destinationName=MyAwesomeQueue",
"operation": "purge"
}
http://localhost:8181/hawtio/jolokia/read/org.apache.activemq:type=Broker,brokerName=amq
http://localhost:8181/hawtio/jolokia/read/org.apache.activemq:type=Broker,brokerName=amq/StorePercentUsage
{
"type":"read",
"mbean":"org.apache.activemq:type=Broker,brokerName=amq"
}
{
"type":"read",
"mbean":"org.apache.activemq:type=Broker,brokerName=amq",
"attribute":"StorePercentUsage"
}
http://localhost:8181/hawtio/jolokia/read/org.apache.activemq:type=Broker,brokerName=amq,destinationType=Queue,destinationName=MyAwesomeQueue
http://localhost:8181/hawtio/jolokia/read/org.apache.activemq:type=Broker,brokerName=amq,destinationType=Queue,destinationName=MyAwesomeQueue/QueueSize
{
"type":"read",
"mbean":"org.apache.activemq:type=Broker,brokerName=amq,destinationType=Queue,destinationName=MyAwesomeQueue"
}
{
"type":"read",
"mbean":"org.apache.activemq:type=Broker,brokerName=amq,destinationType=Queue,destinationName=MyAwesomeQueue",
"attribute":"QueueSize"
}
{
"type":"read",
"mbean":"org.apache.activemq:type=Broker,brokerName=amq,destinationType=Queue,destinationName=MyAwesomeQueue",
"attribute":["QueueSize","CursorMemoryUsage"]
}