· 6 years ago · Mar 24, 2019, 03:46 PM
1{
2 "schemaVersion": "1.0",
3 "description": "CloudWatch for Windows Instances",
4 "runtimeConfig": {
5 "aws:cloudWatch": {
6 "properties": {
7 "EngineConfiguration": {
8 "PollInterval": "00:00:15",
9 "Components": [
10 {
11 "Id": "ApplicationEventLog",
12 "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch",
13 "Parameters": {
14 "LogName": "Application",
15 "Levels": "3"
16 }
17 },
18 {
19 "Id": "SystemEventLog",
20 "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch",
21 "Parameters": {
22 "LogName": "System",
23 "Levels": "7"
24 }
25 },
26 {
27 "Id": "SecurityEventLog",
28 "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch",
29 "Parameters": {
30 "LogName": "Security",
31 "Levels": "1"
32 }
33 },
34 {
35 "Id": "IISLog",
36 "FullName": "AWS.EC2.Windows.CloudWatch.IisLog.IisLogInputComponent,AWS.EC2.Windows.CloudWatch",
37 "Parameters": {
38 "LogDirectoryPath": "C:\\inetpub\\logs\\LogFiles\\W3SVC1"
39 }
40 },
41 {
42 "Id": "PerformanceCounter",
43 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
44 "Parameters": {
45 "CategoryName": "Memory",
46 "CounterName": "Available MBytes",
47 "InstanceName": "",
48 "MetricName": "AvailableMemory",
49 "Unit": "Megabytes",
50 "DimensionName": "",
51 "DimensionValue": ""
52 }
53 },
54 {
55 "Id": "PerformanceCounter2",
56 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
57 "Parameters": {
58 "CategoryName": "Processor",
59 "CounterName": "% Privileged Time",
60 "InstanceName": "",
61 "MetricName": "CPUPrivilegedTime",
62 "Unit": "Percent",
63 "DimensionName": "",
64 "DimensionValue": ""
65 }
66 },
67 {
68 "Id": "PerformanceCounter3",
69 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
70 "Parameters": {
71 "CategoryName": "Processor",
72 "CounterName": "% Processor Time",
73 "InstanceName": "",
74 "MetricName": "CPUProcessorTime",
75 "Unit": "Percent",
76 "DimensionName": "",
77 "DimensionValue": ""
78 }
79 },
80 {
81 "Id": "PerformanceCounter4",
82 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
83 "Parameters": {
84 "CategoryName": "Processor",
85 "CounterName": "% User Time",
86 "InstanceName": "",
87 "MetricName": "CPUUserTime",
88 "Unit": "Percent",
89 "DimensionName": "",
90 "DimensionValue": ""
91 }
92 },
93 {
94 "Id": "PerformanceCounter5",
95 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
96 "Parameters": {
97 "CategoryName": "System",
98 "CounterName": "Context Switches/sec",
99 "InstanceName": "",
100 "MetricName": "SystemContextSwitches",
101 "Unit": "Count",
102 "DimensionName": "",
103 "DimensionValue": ""
104 }
105 },
106 {
107 "Id": "PerformanceCounter6",
108 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
109 "Parameters": {
110 "CategoryName": "System",
111 "CounterName": "Processor Queue Length",
112 "InstanceName": "",
113 "MetricName": "SystemProcessorQueueLength",
114 "Unit": "Count",
115 "DimensionName": "",
116 "DimensionValue": ""
117 }
118 },
119 {
120 "Id": "PerformanceCounter7",
121 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
122 "Parameters": {
123 "CategoryName": "Memory",
124 "CounterName": "Page Faults/sec",
125 "InstanceName": "",
126 "MetricName": "MemoryPageFaults",
127 "Unit": "Count/Second",
128 "DimensionName": "",
129 "DimensionValue": ""
130 }
131 },
132 {
133 "Id": "PerformanceCounter8",
134 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
135 "Parameters": {
136 "CategoryName": "Memory",
137 "CounterName": "Pages/sec",
138 "InstanceName": "",
139 "MetricName": "MemoryPages",
140 "Unit": "Count/Second",
141 "DimensionName": "",
142 "DimensionValue": ""
143 }
144 },
145 {
146 "Id": "PerformanceCounter9",
147 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
148 "Parameters": {
149 "CategoryName": "LogicalDisk(C:)",
150 "CounterName": "Disk Bytes/sec",
151 "InstanceName": "",
152 "MetricName": "DiskCBytesSec",
153 "Unit": "Bytes/Second",
154 "DimensionName": "",
155 "DimensionValue": ""
156 }
157 },
158 {
159 "Id": "PerformanceCounter10",
160 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
161 "Parameters": {
162 "CategoryName": "LogicalDisk(D:)",
163 "CounterName": "Disk Bytes/sec",
164 "InstanceName": "",
165 "MetricName": "DiskDBytesSec",
166 "Unit": "Bytes/Second",
167 "DimensionName": "",
168 "DimensionValue": ""
169 }
170 },
171 {
172 "Id": "PerformanceCounter11",
173 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
174 "Parameters": {
175 "CategoryName": "LogicalDisk(C:)",
176 "CounterName": "Disk Transfers/sec",
177 "InstanceName": "",
178 "MetricName": "DiskCIPOPS",
179 "Unit": "Count",
180 "DimensionName": "",
181 "DimensionValue": ""
182 }
183 },
184 {
185 "Id": "PerformanceCounter12",
186 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
187 "Parameters": {
188 "CategoryName": "LogicalDisk(D:)",
189 "CounterName": "Disk Transfers/sec",
190 "InstanceName": "",
191 "MetricName": "DiskDIPOPS",
192 "Unit": "Count",
193 "DimensionName": "",
194 "DimensionValue": ""
195 }
196 },
197 {
198 "Id": "PerformanceCounter13",
199 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
200 "Parameters": {
201 "CategoryName": "LogicalDisk(C:)",
202 "CounterName": "Current Disk Queue Length",
203 "InstanceName": "",
204 "MetricName": "DiskCQueue",
205 "Unit": "Count",
206 "DimensionName": "",
207 "DimensionValue": ""
208 }
209 },
210 {
211 "Id": "PerformanceCounter14",
212 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
213 "Parameters": {
214 "CategoryName": "LogicalDisk(D:)",
215 "CounterName": "Current Disk Queue Length",
216 "InstanceName": "",
217 "MetricName": "DiskDQueue",
218 "Unit": "Count",
219 "DimensionName": "",
220 "DimensionValue": ""
221 }
222 },
223 {
224 "Id": "CloudWatchLogs",
225 "FullName": "AWS.EC2.Windows.CloudWatch.CloudWatchLogsOutput,AWS.EC2.Windows.CloudWatch",
226 "Parameters": {
227 "AccessKey": "",
228 "SecretKey": "",
229 "Region": "us-east-1",
230 "LogGroup": "Default-Log-Group",
231 "LogStream": "{instance_id}"
232 }
233 },
234 {
235 "Id": "CloudWatch",
236 "FullName": "AWS.EC2.Windows.CloudWatch.CloudWatch.CloudWatchOutputComponent,AWS.EC2.Windows.CloudWatch",
237 "Parameters": {
238 "AccessKey": "",
239 "SecretKey": "",
240 "Region": "us-east-1",
241 "NameSpace": "Windows/Default"
242 }
243 }
244 ],
245 "Flows": {
246 "Flows": [
247 "(ApplicationEventLog,SystemEventLog,SecurityEventLog,IISLog),CloudWatchLogs",
248 "(PerformanceCounter), CloudWatch"
249 ]
250 }
251 }
252 }
253 }
254 }
255}