Day-to-Day Metrics of Queues in Solace Software PubSub event broker 10.4.1.121

Dhanusri
Dhanusri Member Posts: 14 ✭✭

Is it possible to get the metrics of Queues based on date range within the CLI or Solace UI.

Answers

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 605 admin
    edited September 30 #2

    Nope, you'll need to leverage a time-series database for gathering SEMP metrics and putting them in there. I really like InfluxDB, but you'll need to build the SEMP scripting / collector for it. We have an open-source Community project for Prometheus that is active and people seem to like: https://github.com/solacecommunity/solace-prometheus-exporter

    If you really don't want to use any external capability, you can always blank out your queue stats once a day, then you'll only see the # of messages, # of bytes, etc. through the queue since you last reset. In CLI:

    enable
    clear queue * message-vpn * stats
    

    In PubSub+ Manager UI, I think you'd have to do it queue-by-queue.

  • Dhanusri
    Dhanusri Member Posts: 14 ✭✭

    Hi @Aaron,

    Thanks for the response.

    currently, we are clearing stats and checking the metrics whenever needed.

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 605 admin

    Update: I made a typo in my CLI above… I had clear stats queue * stats and it should be clear queue * stats. My mistake.

    Also, if you wanted to maybe do this in a cron job, you could use SEMPv1 to remotely clear these stats (at midnight or whatever):

    curl -u admin:admin http://localhost:8080/SEMP -d '<rpc><clear><queue><name>*</name><vpn-name>*</vpn-name><stats/></queue></clear></rpc>'