# compute-autoscale-metric-nodejs **Repository Path**: mirrors_GoogleCloudPlatform/compute-autoscale-metric-nodejs ## Basic Information - **Project Name**: compute-autoscale-metric-nodejs - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Compute Engine autoscaling using custom Cloud Monitoring metric This code is an example reference implementation for the Compute Engine Autoscaling using custom Cloud Monitoring metric [tutorial](https://cloud.google.com/architecture/autoscaling-instance-group-with-custom-stackdrivers-metric) on the Google Cloud solutions site. # Components * writeToCustomMetric.js - a NodeJS app that uses the Google Cloud SDK client to write a custom monitoring metric * writeToCustomMetric.sh - a simple bash script to execute the writeToCustomMetric.js * startup.sh - a startup script used to install the necessary components (including the script and NodeJS app above) on each new Google Compute Engine VM # Installation 1. Follow the detailed steps in the Compute Engine Autoscaling Using Stackdriver Custom Metrics [tutorial](https://cloud.google.com/architecture/autoscaling-instance-group-with-custom-stackdrivers-metric) to configure and deploy the code