简体   繁体   English

AWS CloudWatch指标直接应用于S3

[英]AWS CloudWatch Metrics directly to S3

Is there a way to get CloudWatch Metrics directly into S3? 有没有办法将CloudWatch Metrics直接引入S3? I don't need logs but ELB Metrics. 我不需要日志,但需要ELB指标。 I would like them logged to S3 on a regular basis (ideally as CSV). 我希望他们定期登录到S3(最好是CSV)。

Right now, I'm thinking of writing my own script to do it, but maybe there's there's an automatic way to put it in S3 (or Redshift)? 现在,我正在考虑编写自己的脚本来执行此操作,但是也许有一种自动方法可以将其放入S3(或Redshift)中?

CloudWatch itself does not have a native export feature that will send data periodically to S3. CloudWatch本身没有本地导出功能,该功能会定期向S3发送数据。

As you suggest, you would need to develop a scrip tthat pulls the CloudWatch metrics that you wish to store (in this case ELB metrics) using the AWS CLI and copy those metrics to your S3 bucket on a regular basis. 如您建议的那样,您需要开发一个脚本来使用AWS CLI提取您想要存储的CloudWatch指标(在本例中为ELB指标),并定期将这些指标复制到S3存储桶中。

Using the get-metric-statistics command, the script would get the statistics for the specified metric, and store the data to your S3 bucket 使用get-metric-statistics命令,脚本将获取指定指标的统计信息,并将数据存储到S3存储桶中

See also Elastic Load Balancing Dimensions and Metrics 另请参阅弹性负载平衡尺寸和指标

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM