将 CloudWatch Insights 与 Amazon CloudWatch 网络监测仪结合使用 - Amazon CloudWatch
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

将 CloudWatch Insights 与 Amazon CloudWatch 网络监测仪结合使用

CloudWatch Contributor Insights 可以帮助您确定应用程序的主要客户端位置和网络(ASN 或互联网服务提供商)。通过以下 Contributor Insights 示例规则,开始使用对 Amazon CloudWatch 网络监测仪有用的规则。有关更多信息,请参阅 创建 Contributor Insights 规则

要详细了解网络监测仪中的客户端位置准确性,请参阅 网络监测仪中的地理位置信息和准确性

注意

Internet Monitor 每五分钟发布一次数据,因此在设置 Contributor Insights 规则后,必须将查看图表的周期调整为五分钟。

查看受可用性影响的排名靠前的位置和 ASN

要查看受可用性下降影响的主要客户端位置和 ASN,您可以在语法编辑器中使用以下 Contributor Insights 规则。请将 monitor-name 替换为您自己的监视器名称。

{ "Schema": { "Name": "CloudWatchLogRule", "Version": 1 }, "AggregateOn": "Sum", "Contribution": { "Filters": [ { "Match": "$.clientLocation.city", "IsPresent": true } ], "Keys": [ "$.clientLocation.city", "$.clientLocation.networkName" ], "ValueOf": "$.awsInternetHealth.availability.percentageOfTotalTrafficImpacted" }, "LogFormat": "JSON", "LogGroupNames": [ "/aws/internet-monitor/monitor-name/byCity" ] }

查看受延迟影响的主要客户端位置和 ASN

要查看受往返时间(延迟)增加影响的主要客户端位置和 ASN,您可以在语法编辑器中使用以下 Contributor Insights 规则。请将 monitor-name 替换为您自己的监视器名称。

{ "Schema": { "Name": "CloudWatchLogRule", "Version": 1 }, "AggregateOn": "Sum", "Contribution": { "Filters": [ { "Match": "$.clientLocation.city", "IsPresent": true } ], "Keys": [ "$.clientLocation.city", "$.clientLocation.networkName" ], "ValueOf": "$.awsInternetHealth.performance.percentageOfTotalTrafficImpacted" }, "LogFormat": "JSON", "LogGroupNames": [ "/aws/internet-monitor/monitor-name/byCity" ] }

查看受总流量百分比影响的主要客户端位置和 ASN

要查看受总流量百分比影响的主要客户端位置和 ASN,您可以在语法编辑器中使用以下 Contributor Insights 规则。请将 monitor-name 替换为您自己的监视器名称。

{ "Schema": { "Name": "CloudWatchLogRule", "Version": 1 }, "AggregateOn": "Sum", "Contribution": { "Filters": [ { "Match": "$.clientLocation.city", "IsPresent": true } ], "Keys": [ "$.clientLocation.city", "$.clientLocation.networkName" ], "ValueOf": "$.percentageOfTotalTraffic" }, "LogFormat": "JSON", "LogGroupNames": [ "/aws/internet-monitor/monitor-name/byCity" ] }