Skip to main content

Making EC2 Wastage Memory-Aware

warning
This module is being shut down in March 2025. See Shutdown of Cost and Compliance Modules for more information.

When it comes to wastage in EC2 instances, Stax can retrieve metrics from CloudWatch to track an instance's memory utilization.

Stax recommends customers use the AWS CloudWatch Agent to collect these metrics or set up custom metrics. Utilize the CloudWatch Agent enables integration with AWS Systems Manager for unified metrics and logs collection, improving the overall observability of your EC2 Instances.

Supported CloudWatch Metrics

Stax supports different CloudWatch metrics based on the instance's operating system.

All instance types

  • Memory/MemFreeBytes + Memory/MemTotalBytes
  • Telegraf/MemUsedPercent
  • Telegraf/mem_used_percent

Linux

  • CWAgent/mem_used_percent
  • System/Linux/MemoryUtilization
  • Linux/System/MemoryUtilization

macOS

  • CWAgent/mem_used_percent

Microsoft Windows

  • CWAgent/Memory % Committed Bytes In Use
  • Windows/Default/AvailableMemory
  • System/Windows/AvailableMemory
  • Windows/Default/Available Mbytes
  • System/Windows/Available Mbytes
  • Windows/Default/Available Memory
  • System/Windows/Available Memory

See also

Find more information about how to set up these metrics in the references below.