Getting a Universal Messaging Topic or Queue size

What product/components do you use and which version/fix level?

UM 10.3 and 10.7

What are trying to achieve? Please describe in detail.

Producing metrics to export to Prometheus
Getting a specific topic/queue size
I’ve already read View number of messages not consumed - #7 by Stephen_Derry2, but it doesn’t answer my question.

Do you get any error messages? Please provide a full error message screenshot and log file.

Not applicable

Hi,
Since 10.7, Universal Messaging server provides Prometheus support, please see:

https://documentation.softwareag.com/universal_messaging/num10-7/10-7_UM_webhelp/index.html#page/um-webhelp%2Fco-ops_using_prometheus.html%23

Once Prometheus is configured to connect to and scrape Universal Messaging server, you can use “NoOfEvents_<topic>” query to get the number of events for a topic/queue, for example “NoOfEvents_mytopic” should give you the current number of events for “mytopic” channel - similar to what the as seen in “Event Store” section of the channel status in Enterprise Manager.

Detelin

I’ll give this a try. Afterwards, if it really solves my need, I’ll glady tag it as “the answer”.