Search
Close this search box.

Cloud8 and Amazon don’t monitor my cloud server’s memory?

1 min read

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:

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”.