-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows Start Agent With EC2 Run Command
- Loading branch information
1 parent
d06c821
commit 8c9d628
Showing
6 changed files
with
419 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
216 changes: 216 additions & 0 deletions
216
test/feature/windows/custom_start/userdata/agent_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,216 @@ | ||
{ | ||
"agent": { | ||
"debug": true | ||
}, | ||
"metrics": { | ||
"namespace": "CloudWatchAgentWinFeature", | ||
"metrics_collected": { | ||
"Processor": { | ||
"measurement": [ | ||
{ | ||
"name":"% Idle Time", | ||
"rename": "Idle_Time" | ||
}, | ||
{ | ||
"name":"% Interrupt Time", | ||
"rename": "Interrupt_Time" | ||
}, | ||
{ | ||
"name":"% User Time", | ||
"rename": "User_Time" | ||
}, | ||
{ | ||
"name":"% Processor Time", | ||
"rename": "Processor_Time" | ||
} | ||
], | ||
"resources": [ | ||
"*" | ||
], | ||
"metrics_collection_interval": 1 | ||
}, | ||
"LogicalDisk": { | ||
"measurement": [ | ||
{ | ||
"name":"% Free Space", | ||
"rename":"Free_Space" | ||
} | ||
], | ||
"resources": [ | ||
"*" | ||
], | ||
"metrics_collection_interval": 1 | ||
}, | ||
"PhysicalDisk": { | ||
"measurement": [ | ||
{ | ||
"name":"% Disk Time", | ||
"rename": "Disk_Time" | ||
}, | ||
{ | ||
"name":"Disk Write Bytes/sec", | ||
"rename": "Write_Bytes_Per_Sec" | ||
}, | ||
{ | ||
"name":"Disk Read Bytes/sec", | ||
"rename": "Read_Bytes_Per_Sec" | ||
}, | ||
{ | ||
"name":"Disk Writes/sec", | ||
"rename": "Write_Per_Sec" | ||
}, | ||
{ | ||
"name":"Disk Reads/sec", | ||
"rename": "Disk_Read_Per_Sec" | ||
} | ||
], | ||
"resources": [ | ||
"*" | ||
], | ||
"metrics_collection_interval": 1 | ||
}, | ||
"Network Interface": { | ||
"measurement": [ | ||
{ | ||
"name":"Bytes Sent/sec", | ||
"rename": "Bytes_Sent_Per_Sec" | ||
}, | ||
{ | ||
"name":"Bytes Received/sec", | ||
"rename": "Bytes_Received_Per_Sec" | ||
}, | ||
{ | ||
"name":"Packets Sent/sec", | ||
"rename": "Packets_Sent_Per_Sec" | ||
}, | ||
{ | ||
"name":"Packets Received/sec", | ||
"rename": "Packets_Received_Per_Sec" | ||
} | ||
], | ||
"resources": [ | ||
"*" | ||
], | ||
"metrics_collection_interval": 1 | ||
}, | ||
"Memory": { | ||
"measurement": [ | ||
{ | ||
"name": "Available Bytes", | ||
"rename": "Available_Bytes" | ||
}, | ||
{ | ||
"name":"Cache Faults/sec", | ||
"rename": "Cache_Faults_Per_Sec" | ||
}, | ||
{ | ||
"name":"Page Faults/sec", | ||
"rename": "Page_Faults_Per_sec" | ||
}, | ||
{ | ||
"name":"Pages/sec", | ||
"rename":"Page_Per_Sec" | ||
} | ||
], | ||
"metrics_collection_interval": 1 | ||
}, | ||
"System": { | ||
"measurement": [ | ||
{ | ||
"name": "Processor Queue Length", | ||
"rename": "Processor_Queue_Length" | ||
} | ||
], | ||
"metrics_collection_interval": 1 | ||
}, | ||
"TCPv4": { | ||
"measurement": [ | ||
{ | ||
"name": "Connections Established", | ||
"rename": "Connections_Established" | ||
} | ||
], | ||
"metrics_collection_interval": 1 | ||
}, | ||
"TCPv6": { | ||
"measurement": [ | ||
{ | ||
"name": "Connections Established", | ||
"rename": "Connections_Established" | ||
} | ||
], | ||
"metrics_collection_interval": 1 | ||
}, | ||
"procstat": [ | ||
{ | ||
"exe": "amazon-cloudwatch-agent", | ||
"measurement": [ | ||
"cpu_usage", | ||
"memory_rss" | ||
], | ||
"metrics_collection_interval": 1 | ||
} | ||
] | ||
}, | ||
"append_dimensions": { | ||
"InstanceId": "${aws:InstanceId}" | ||
}, | ||
"force_flush_interval": 30 | ||
}, | ||
"logs": { | ||
"logs_collected": { | ||
"windows_events": { | ||
"collect_list": [ | ||
{ | ||
"event_name": "Security", | ||
"event_levels": [ | ||
"INFORMATION", | ||
"WARNING", | ||
"ERROR", | ||
"CRITICAL", | ||
"VERBOSE" | ||
], | ||
"log_group_name": "{instance_id}", | ||
"log_stream_name": "SecurityEvent" | ||
}, | ||
{ | ||
"event_name": "System", | ||
"event_levels": [ | ||
"INFORMATION", | ||
"WARNING", | ||
"ERROR", | ||
"CRITICAL", | ||
"VERBOSE" | ||
], | ||
"log_group_name": "{instance_id}", | ||
"log_stream_name": "System" | ||
}, | ||
{ | ||
"event_name": "Application", | ||
"event_levels": [ | ||
"INFORMATION", | ||
"WARNING", | ||
"ERROR", | ||
"CRITICAL", | ||
"VERBOSE" | ||
], | ||
"log_group_name": "{instance_id}", | ||
"log_stream_name": "Application" | ||
} | ||
] | ||
}, | ||
|
||
"files": { | ||
"collect_list": [ | ||
{ | ||
"file_path": "C:/Users/Administrator/AppData/Local/Temp/test1.log", | ||
"log_group_name": "{instance_id}", | ||
"log_stream_name": "test1.log", | ||
"timezone": "UTC" | ||
} | ||
] | ||
} | ||
}, | ||
"force_flush_interval": 5 | ||
} | ||
} |
Oops, something went wrong.