Run the below command to enabled detailed monitoring on a running EC2 Instance
aws ec2 monitor-instances --instance-ids INSTANCEID
Disable detailed monitoring on an EC2 Instance by running the below command
aws ec2 unmonitor-instances --instance-ids INSTANCEID