Last active
December 20, 2019 14:41
-
-
Save amcginlay/1c292ab978fb7fbac202048e5357284e to your computer and use it in GitHub Desktop.
Cloudwatch Daily Maximum CPU Utilization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws cloudwatch get-metric-statistics \ | |
--namespace AWS/EC2 \ | |
--metric-name CPUUtilization \ | |
--statistics Maximum \ | |
--start-time 2019-01-01T00:00:00Z \ | |
--end-time 2020-01-01T00:00:00Z \ | |
--period $((60*60*24)) \ | |
--query 'sort_by(Datapoints,&Timestamp)[*]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment