
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
io.mats3.matsbrokermonitor:matsbrokermonitor-htmlgui
Advanced tools
Monitoring solution for the backend message broker of Mats
Monitoring of a message broker for Mats-relevant Queues, Topics and Dead Letter Queues. The project provides both an API and implementation to gather such information, and an embeddable HTML GUI to introspect and act on messages.
When using Mats - or really any messaging based infrastructure - you gain a massive advantage by having many of the errors in the total system "crop up" on the message broker. However, to catch these errors, you need to monitor it.
You want to monitor these three elements:
(An interesting point is that the first and second bullet can often effectively be monitored by a single test: If the message at the head of the queue is old, it EITHER means that no-one is consuming messages, OR that the queue has become long enough that the messages gets old while waiting to be consumed.)
In addition, for the DLQs, you'd want two more features:
(Just since it is important enough to be mentioned right away: You should always configure your message broker to use
an Individual Dead Letter Queue strategy. This is strangely not the default for any of the common brokers, instead
using a single DLQ which all unprocessable messages for any queue end up on. But all brokers have configurable ways to
get a separate DLQ for every Queue, using the common DLQ name pattern "DLQ.{originalQueueName}"
. You really want this
if you employ Mats, at least for the Mats destinations!)
The first set of requirements, i.e. which queues and DLQs exist on the broker, how many messages are on the queues, and
the age of the first message, is not a part of the JMS standard, or any other Message System standard for that matter,
so we need some broker-specific tools for this. ActiveMQ has several options: JMX, Jolokia, Advisory Messages and the
Statistics Plugin that can be enabled and then afterwards queried using the messaging system itself. These functions
are defined in the MatsBrokerMonitor'
interface. The implementation for ActiveMQ, ActiveMqMatsBrokerMonitor
, relies
on the installation of the Statistics Plugin, and queries this over JMS.
(Compared to Mats, which works with both Apache Artemis and Apache ActiveMQ as message broker, there is currently no such MatsBrokerMonitor implementation for Artemis. This will hopefully soon come.)
The second set of requirements can be fulfilled by the JMS API itself, using the QueueBrowser
feature of JMS to
inspect a queue, and JMS consume and produce to move a message from a DLQ back onto the incoming queue for the relevant
Mats stage. This functionality thus works across any broker that implements the JMS API. And is defined in the
MatsBrokerBrowseAndActions
, and the JMS implementation is JmsMatsBrokerBrowseAndActions
.
FAQs
Monitoring solution for the backend message broker of Mats
We found that io.mats3.matsbrokermonitor:matsbrokermonitor-htmlgui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.