This custom metric executes the cat /proc/loadavg command on a Linux/Unix system to retrieve CPU usage information. It parses the output to extract the first column of the output which represents the 1 min load avg of the server.
To set this up, create the function on each instance. Paste the provided SQL script (only the SELECT at the bottom of the attached script) into a custom single value metric that runs every minute. Here is an example of the metric definition: