Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CloudWatch Metrics directly to S3

Is there a way to get CloudWatch Metrics directly into S3? I don't need logs but ELB Metrics. I would like them logged to S3 on a regular basis (ideally as 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)?

like image 598
Mystic Avatar asked Jan 29 '26 10:01

Mystic


1 Answers

CloudWatch itself does not have a native export feature that will send data periodically to 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.

Using the get-metric-statistics command, the script would get the statistics for the specified metric, and store the data to your S3 bucket

See also Elastic Load Balancing Dimensions and Metrics

like image 101
Rodrigo Murillo Avatar answered Jan 31 '26 00:01

Rodrigo Murillo