电子邮件升级队列在ActiveMQ Artemis

huangapple go评论48阅读模式
英文:

Email escalation for queues in ActiveMQ Artemis

问题

我正在我的机器上运行ActiveMQ Artemis,并希望为超过一定限制的待处理消息数的队列设置电子邮件升级。是否有任何插件或内置功能可以帮助我实现这一目标?任何指导或建议将不胜感激。

经过多天的研究,我发现我们可以通过使用Advisory Queue来实现这一目标。我很好奇这是否是一个重要的功能。是否有其他内置功能或更好的方法,我无法找到?

英文:

I am running ActiveMQ Artemis on my machine and I would like to set up email escalation for queues that breach when the number of pending messages exceeds a certain limit. Is there any plugin or built-in feature that can help me achieve this? Any guidance or suggestions would be greatly appreciated.

After days of research I have found that we can achieve this by using Advisory Queue. I am curious that this is important feature. There will be the other build-in or best approach than this one that I couldn't get across with.

答案1

得分: 2

The broker itself won't send emails. Email alerts are generally implemented as part of a broader monitoring solution.

例如,您可以配置代理使用度量插件,如Prometheus插件。一旦代理正确配置,然后您可以配置Prometheus甚至Grafana,根据各种不同情况的阈值发送电子邮件警报。它非常灵活和强大。

当然,您还可以使用管理API设置自己的简单监控机制,或者集成商业JMX监控工具(例如Nagios、AppDynamics等)。

我建议不要使用Advisory队列。这是专门为来自ActiveMQ "Classic"的OpenWire客户端实现的功能。它不是通用的监控解决方案。

英文:

The broker itself won't send emails. Email alerts are generally implemented as part of a broader monitoring solution.

For example, you can configure the broker with a metrics plugin like the Prometheus plugin. Once the broker is configured properly then you can configure Prometheus or even Grafana to send email alerts based on thresholds for all kinds of different situations. It's very flexible and powerful.

Of course, you could also set up your own simple monitoring mechanism using the management API or you could integrate a commercial JMX monitoring tool (e.g. Nagios, AppDynamics, etc.).

I would recommend against using an Advisory Queue. This is a feature specifically implemented for OpenWire clients which came from ActiveMQ "Classic." It's not a general purpose monitoring solution.

huangapple
  • 本文由 发表于 2023年4月17日 16:49:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76033296.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定