Cloud server memory and disk space metrics are not included in AWS (CloudWatch) by default, as it is a metric that would require access to the server.
But there is a possibility that AWS created which are called ‘custom metrics’. See how it would be to include metrics in Linux and Windows:
- Linux: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html
- Windows: http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_WinAMI.html#send_logs_to_cwl
See an example of how to create a JSON file (AWS.EC2.Windows.CloudWatch.json) on Windows for Cloud8 to read custom metrics:
{
"Id": "PerformanceCounter",
"FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
"Parameters": {
"CategoryName": "Memory",
"CounterName": "Available MBytes",
"InstanceName": "",
"MetricName": "MemoryUtilization",
"Unit": "Megabytes",
"DimensionName": "InstanceId",
"DimensionValue": "{instance_id}"
}
},
{
"Id": "PerformanceCounterDisk",
"FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
"Parameters": {
"CategoryName": "LogicalDisk",
"CounterName": "Free Megabytes",
"InstanceName": "C:",
"MetricName": "VolumeUtilization",
"Unit": "Megabytes",
"DimensionName": "InstanceId",
"DimensionValue": "{instance_id}"
}
},
{
"Id": "PerformanceCounterPaging",
"FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
"Parameters": {
"CategoryName": "Paging File",
"CounterName": "% Usage",
"InstanceName": "_total",
"MetricName": "pagefileUtilization(c:\\pagefile.sys)",
"Unit": "Percent",
"DimensionName": "InstanceId",
"DimensionValue": "{instance_id}"
}
}
And don’t forget to enable:
"Flows": {
"Flows": [
"(PerformanceCounter,PerformanceCounterDisk,PerformanceCounterPaging),CloudWatch"
]
}
There is a cost for each metric of this type.
http://aws.amazon.com/cloudwatch/pricing/
Once configured, Cloud8 is already pre-configured to pick them up. In the ‘metrics’ functionality, simply select the custom metric you chose to monitor: “% Memory”, “% Swap”, “% Space”.