Azure 服务总线主题请求与消息
Azure Service Bus Topic Requests vs Messages
我需要帮助来解读这些图表:
它有 0 个订阅。这是否意味着没有人阅读该主题?
查看消息图表,在过去 30 天内,没有收到或阅读过此主题的任何消息。
为什么有 368 个传入和成功的请求,如果此主题没有任何内容to/read?
这是传入请求的预期行为。
即使没有消息发送到 service bus
,Scale Unit
(承载服务总线)将始终将请求发送到 service bus
health check
/ polling
目的(这个我不是很确定,只是猜测)。
您可以通过为 azure service bus
设置 Diagnostic settings
来检查此行为。例如,您可以将 OperationalLogs
发送到 azure blob storage
或 azure log analytics
,然后您可以稍后查看 OperationalLogs
。如下所示(这里,我将日志发送到 azure blob storage
):
然后稍等几分钟,进入azure blob storage
-> 找到名为insights-logs-operationallogs
的容器,它是自动创建的,它的结构类似于SUBSCRIPTIONS / RESOURCEGROUPS / PROVIDERS / NAMESPACES / year / month / hour / day / hour
-> 然后应该是类似于 PT1H.json
的附加 blob。您可以下载它并查看那里的日志。日志如下所示:
在日志中,您可以看到 caller
rpfrontdoor 继续向 service bus
.
发送请求
在此处添加了详细的日志消息:
{ "Environment": "PROD", "Region": "Central US", "ScaleUnit":
"PROD-DM2-006", "ActivityId": "e203b024-48dc-44d3-b5eb-e345c090676c",
"EventName": "Retrieve Namespace", "resourceId":
"/SUBSCRIPTIONS/xxx/RESOURCEGROUPS/xxx/PROVIDERS/MICROSOFT.SERVICEBUS/NAMESPACES/HDUAIDHWUAYDQHD",
"SubscriptionId": "xxx", "EventTimeString": "4/15/2021 9:22:27 AM
+00:00", "EventProperties": "{"SubscriptionId":"xxxx","Namespace":"hduaidhwuaydqhd","Via":"https://hduaidhwuaydqhd.servicebus.windows.net/$Resources/topics?api-version=2017-04&$skip=0&$top=100","TrackingId":"e203b024-48dc-44d3-b5eb-e345c090676c_M7SN1_M7SN1_G7"}",
"Status": "Succeeded", "Caller": "rpfrontdoor", "category":
"OperationalLogs"}
我需要帮助来解读这些图表:
它有 0 个订阅。这是否意味着没有人阅读该主题?
查看消息图表,在过去 30 天内,没有收到或阅读过此主题的任何消息。
为什么有 368 个传入和成功的请求,如果此主题没有任何内容to/read?
这是传入请求的预期行为。
即使没有消息发送到 service bus
,Scale Unit
(承载服务总线)将始终将请求发送到 service bus
health check
/ polling
目的(这个我不是很确定,只是猜测)。
您可以通过为 azure service bus
设置 Diagnostic settings
来检查此行为。例如,您可以将 OperationalLogs
发送到 azure blob storage
或 azure log analytics
,然后您可以稍后查看 OperationalLogs
。如下所示(这里,我将日志发送到 azure blob storage
):
然后稍等几分钟,进入azure blob storage
-> 找到名为insights-logs-operationallogs
的容器,它是自动创建的,它的结构类似于SUBSCRIPTIONS / RESOURCEGROUPS / PROVIDERS / NAMESPACES / year / month / hour / day / hour
-> 然后应该是类似于 PT1H.json
的附加 blob。您可以下载它并查看那里的日志。日志如下所示:
在日志中,您可以看到 caller
rpfrontdoor 继续向 service bus
.
在此处添加了详细的日志消息:
{ "Environment": "PROD", "Region": "Central US", "ScaleUnit": "PROD-DM2-006", "ActivityId": "e203b024-48dc-44d3-b5eb-e345c090676c", "EventName": "Retrieve Namespace", "resourceId": "/SUBSCRIPTIONS/xxx/RESOURCEGROUPS/xxx/PROVIDERS/MICROSOFT.SERVICEBUS/NAMESPACES/HDUAIDHWUAYDQHD", "SubscriptionId": "xxx", "EventTimeString": "4/15/2021 9:22:27 AM +00:00", "EventProperties": "{"SubscriptionId":"xxxx","Namespace":"hduaidhwuaydqhd","Via":"https://hduaidhwuaydqhd.servicebus.windows.net/$Resources/topics?api-version=2017-04&$skip=0&$top=100","TrackingId":"e203b024-48dc-44d3-b5eb-e345c090676c_M7SN1_M7SN1_G7"}", "Status": "Succeeded", "Caller": "rpfrontdoor", "category": "OperationalLogs"}