如何查看按消费者组分组的 Azure 事件中心指标?

发布于 2025-01-12 21:14:24 字数 235 浏览 2 评论 0原文

我有一个 Azure 事件中心主题,有两个消费者组监听该主题。其中一个消费者正在努力从主题中检索数据,但另一个消费者成功地检索了数据。为了解决陷入困境的消费者的连接问题,我希望能够仅查看相关消费者组的出站流量,不包括其他消费者组的流量。

换句话说,我想根据消费者组对请求、消息和吞吐量指标进行分组或过滤。这可能吗?如果是这样,怎么办?我在 Azure 门户中找不到执行此操作的方法。我可以过滤指标下显示的消费者组列表,但这对图表指标没有影响。

I have an Azure Event Hub topic, for which I have two consumer groups which listen. One of the consumers is struggling to retrieve data from the topic, but the other does so successfully. In order to troubleshoot the connection issues of the struggling consumer, I would like to be able to see the outbound traffic for only the consumer group in question, excluding the traffic for the other consumer group(s).

In other words, I would like to group or filter the requests, messages and throughput metrics based on consumer group. Is this possible? If so, how? I cannot find a way to do so in the Azure Portal. I can filter the consumer group list displayed under the metrics, but that has no effect on the graphed metrics.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

单挑你×的.吻 2025-01-19 21:14:24

根据此文档 ,发送到Consumer groups的消息被发送到partitions。您无法指定将哪条消息发送到指定的 Consumer 组。

在此处输入图像描述

事件中心本身无法进行任何过滤,

  • 您可以使用工具查看此数据并进行过滤找出您需要的流分析,它处理来自事件中心,然后将其发送到您所在的位置 需要。这是一个示例你可以参考一下。
  • 您还可以使用 属性。读取来自消费者组的传入消息后,您可以应用该属性来决定是处理还是丢弃它们。

参考:

  1. 过滤低延迟的 Azure 事件中心事件
  2. Azure 事件中心和多个使用者组
  3. 了解 Azure 事件中心分区使用者模式

According to this Document, Messages sent to Consumer groups are sent to partitions. You cannot specify which message to be sent to a specified Consumer group.

enter image description here

Event Hub itself can't do any filtering instead

  • You can use a tool to look at this data and filter out what you need called Stream Analytics, which processes the data from event hub and then send it where you need. Here is an example that you can refer to.
  • You can also use a property for each message. After reading incoming messages from the consumer group, you may apply the property to decide whether to process or discard them.

REFERENCES:

  1. Filtering Azure Event Hubs events with low latency
  2. Azure event hubs and multiple consumer groups
  3. Understanding Azure Event Hubs partitioned consumer pattern
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文