Ashutosh Jha
Ashutosh Jha

Reputation: 1513

Monitoring and alerting on activemq

Hi with activemq problems that i usually face are as under:- 1. Pushed message do not get consumed 2. As a result of point 1, queue size becomes huge 3. Messages in queue keep on retrying

So is there any open source that anyone of you have used in project to send mails when queue size goes beyond a certain threshold. Can we also send message details or store it somewhere to diagnose later why these messages were not getting consumed.

Upvotes: 1

Views: 2882

Answers (2)

mhds
mhds

Reputation: 41

Zabbix can be a choice: https://www.zabbix.com/integrations/activemq If the queue size becomes huge, it will create an alert. Also, it has more variety of other alerts that can be useful.

Upvotes: 1

Antoine Wils
Antoine Wils

Reputation: 349

You can achieve this using alerting tools.
You have to collect the metrics from ActiveMQ jmx (or Jolokia over http): https://activemq.apache.org/jmx.html and react upon it. A good stack (free, but not open source, if you don't need high availability) is Telegraf to collect metrics + InfluxDB to persist + Grafana to render metrics and send alerts.

For example:

  • on the broker you'll find the StorePercentUsage to monitor the overall disk usage
  • on a queue (=Destination) you'll find the QueueSize and the ConsumerCount.

You can easily build a rule to send an alert when the metrics are above/below a threshold.

Upvotes: 0

Related Questions