将一台ec2服务器的cloudwatch数据拖到另一台服务器中

问题描述 投票:0回答:1

我有两个ec2实例Instance A和Instance B我已经通过CLI配置了aws在Inntance A上,有任何方法可以将cloudwatch的统计信息或实例B的数据拉到实例A。

amazon-web-services amazon-ec2 get statistics amazon-cloudwatch
1个回答
0
投票

您可以在实例A上编写并运行Python脚本,该脚本将使用boto3从Cloudwatch获取指标统计信息。

© www.soinside.com 2019 - 2024. All rights reserved.