如何监控nservicebus队列长度

How to monitor nservicebus queue length

我们将 nservicebus 用于一些应用程序,并通过服务脉冲监控端点心跳和失败消息。

大多数情况下,消息会在几分钟内得到处理,但偶尔会出现流量高峰,客户会询问是否有问题。我想知道端点队列的长度,以便我可以响应并提供估计值。

我们使用 sql 作为传输层和订阅存储。我无法远程查看数据库。

显示此数据的最佳方法是什么?

我可以在数据库顶部公开 SSRS 报告,向服务控制和服务脉冲添加代码,因为它们都是开源的,或者通过服务脉冲添加自定义检查...

运行在队列 table 上创建一个作业(在 SQL 服务器上以配置的时间间隔)如何将消息数量写入 table可以查询吗?

您可以将此 table 用于 运行 您的监控工具并生成警报,或者编写一个 customCheck 以便您在 ServicePulse 上收到警报...

虽然这是一个临时解决方案,但我们正在努力填补这一空白,请查看此公告:https://groups.google.com/d/msg/particularsoftware/zRJ18bxeY2Y/zrLu9WOIAQAJ

we've been working on enhancing the Particular Service Platform to close existing gap and provide a means of monitoring your NServiceBus-related system more easily.

  • The initial offering will focus on identifies key metrics (one of them is the queue length) for assessing the health of a system and then presenting these metrics to you in a manner that's easy to visualize and consume.

In the weeks ahead we will share more information about our monitoring philosophy and how we are looking to ease the pain of implementing it. So follow our blog to get notified of updates.

  • In the meantime you are welcome to join the live webinar,on the monitoring theme, Wednesday, June 28 at 12:00 EDT (17:00BST).

此外:我和我的大学 William Brander 将展示您在监控微服务时应考虑的指标。 link- https://particular.net/what-to-consider-when-monitoring-microservices

希望这对您有所帮助,

如果我能提供帮助,请随时发送电子邮件至 particular.net

支持