{ "agent": { "metrics_collection_interval": 60, "run_as_user": "root" }, "logs": { "logs_collected": { "files": { "collect_list": [ { "file_path": "/home/ec2-user/amazon-s3-resumable-upload/s3_migration_log/*", "log_group_name": "s3_migrate_group", "log_stream_name": "cluster-{instance_id}" }, { "file_path": "/var/log/cloud-init-output.log", "log_group_name": "s3_migrate_group", "log_stream_name": "cloud-init-output-{instance_id}" } ] } } }, "metrics": { "append_dimensions": { "AutoScalingGroupName": "${aws:AutoScalingGroupName}", "InstanceId":"${aws:InstanceId}" }, "metrics_collected": { "disk": { "measurement": [ "used_percent" ], "metrics_collection_interval": 60, "resources": [ "*" ] }, "mem": { "measurement": [ "mem_used_percent" ], "metrics_collection_interval": 60 }, "netstat": { "measurement": [ "tcp_established" ], "metrics_collection_interval": 60 } } } }