Viewing queue-related statistics by using REST Monitoring APIs
System administrators can view queue-related statistics by using a REST Monitoring API.
System administrators can view queue-related statistics by using the Amlen WebUI, or by using a REST Monitoring API. For more information about using the Amlen WebUI to view queue-related statistics, see Viewing queue related statistics by using the GUI.
Queue-related monitoring statistics can be viewed by using a REST Monitoring API. To create
queue-related monitoring statistics, complete the following steps:
The following fields are returned:
-
- Name
- String
-
- Producers
- Numeric
-
- Consumers
- Numeric
-
- BufferedMsgs
- Numeric
-
- BufferedMsgsHWM
- Numeric
-
- BufferedHWMPercent
- Numeric
-
- BufferedPercent
- Numeric
-
- MaxMessages
- Numeric
-
- ProducedMsgs
- Numeric
-
- ConsumedMsgs
- Numeric
-
- RejectedMsgs
- Numeric
-
- ExpiredMsgs
- Numeric
The following example uses cURL to show how a GET method is used to create statistics about queues with the highest backlog of messages:
curl -X GET http://127.0.0.1:9089/ima/v1/monitor/Queue?Name=*%26StatType=BufferedMsgsHighest%26ResultCount=10
The following example shows a successful example response to the GET method that was used to create statistics about queues with the highest backlog of messages:
{ "Version":"v1", "Queue": [ { "Name":"MyQueue","Producers":5,"Consumers":2,"BufferedMsgs":50,"BufferedMsgsHWM":40,"BufferedHWMPercent":25,
"BufferedPercent":14,"MaxMessages":134,"ProducedMsgs":14670,"ConsumedMsgs":10145,"RejectedMsgs":100,"ExpiredMsgs":10 }
] }