Metrics for Queue monitoring in Solace

Hi there @Sameer . The metrics that you’re currently looking at are the client API metrics for that one specific connection, these are gathered by the message API during the lifetime of that connection. I believe you probably want broker metrics, stats and data about the Solace broker, queues on it, and stuff like that. You’ll need to check out our SEMP management API for that… fully RESTful, can use for monitoring and configuration (e.g. make a new queue). You access SEMP using your management port and credentials, the same as when you log in to the PubSub+Manager GUI.

Swagger docs: SEMP API Reference

Or specifically: SEMP API Reference

Something like:

$ curl -u admin:admin http://192.168.42.35:8080/SEMP/v2/monitor/msgVpns/default/queues/q1

{
    "data":{
        "accessType":"exclusive",
        "alreadyBoundBindFailureCount":0,
        "averageRxByteRate":0,
        "averageRxMsgRate":0,
        "averageTxByteRate":0,
        "averageTxMsgRate":0,
        "bindRequestCount":0,
        "bindSuccessCount":0,
        "bindTimeForwardingMode":"store-and-forward",
<SNIP>

Also, BTW, the Python API is still fairly new and features are still being added to it, so I’m not sure if all the session statistics are fully implemented yet. Perhaps why you were seeing some unchanging values…?