jsmucr opened a new pull request, #4752:
URL: https://github.com/apache/activemq-artemis/pull/4752

   Alerting on issues with messages not being received properly for a period of 
time is an uneasy task. We use the `getFirstMessageAge()` command to trigger 
alerts in Zabbix, and it works as long as there are no consumers.
   But this approach fails when there are consumers repeatedly failing to 
receive a message. That message is getting scheduled for redelivery over and 
over, and even though there still is an old message in the queue to be 
reported, it's no longer visible via `getFirstMessage*()` API.
   
   The goal here is to add a set of functions working with messages scheduled 
for delivery:
   ```java
   getFirstScheduledMessageAsJSON()
   getFirstScheduledMessageTimestamp()
   getFirstScheduledMessageAge()
   ```
   It may be not the most effective approach but it's quite a convenient one, 
especially when monitoring a wide set of queues, each with its own set of 
alerts.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to