Using Console
Using CLI
Using Python
<PATH_TO_SERVICE_ACCOUNT_KEY_FILE>
with the actual path to your service account key file, <YOUR_PROJECT_ID>
with your GCP project ID, instance_id
with the ID of the instance you want to enable monitoring for, and zone
with the zone of the instance.