简体   繁体   中英

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

Can we also send message details or store it somewhere to diagnose later why these messages were not getting consumed.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM