1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {
- "agent": {
- "metrics_collection_interval": 60,
- "run_as_user": "root"
- },
- "logs": {
- "logs_collected": {
- "files": {
- "collect_list": [
- {
- "file_path": "/home/ec2-user/amazon-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
- }
- }
- }
- }
|