Posted On: Jun 30, 2020

AWS CodeBuild now monitors your machines’ resource utilization on your behalf for each build and reports metrics through Amazon CloudWatch. You can now use CloudWatch’s graphed metrics to troubleshoot builds or determine if you are using the right CodeBuild instance type.

CodeBuild now reports utilization for CPU, Memory, and Disk I/O to CloudWatch for each build. There’s no need for updating build scripts to log the output of resource-utilization commands. By monitoring the resource-utilization metrics of your build machines, you can maintain the performance of your builds while managing costs. Using the CodeBuild Console, you can view the performance of individual builds to support trouble-shooting. In CloudWatch, the metrics can be used to generate richer graphs for troubleshooting or to configure alarms which automate responses to resource utilization trends.

You can get started by visiting the CodeBuild console, starting a new build, and opening the Resource Utilization tab on the build run page. The tab contains graphed metrics and a direct link to the metrics in CloudWatch.

To learn more about Resource Utilization Metrics from CodeBuild, visit our documentation. To learn more about how to get started with CodeBuild, visit the product page or the CodeBuild console.