Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Last active December 20, 2019 14:41
Show Gist options
  • Save amcginlay/1c292ab978fb7fbac202048e5357284e to your computer and use it in GitHub Desktop.
Save amcginlay/1c292ab978fb7fbac202048e5357284e to your computer and use it in GitHub Desktop.
Cloudwatch Daily Maximum CPU Utilization
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