Name: compute-autoscale-metric-nodejs
Owner: Google Cloud Platform
Description: null
Created: 2017-11-28 20:54:15.0
Updated: 2018-01-22 18:50:21.0
Pushed: 2017-12-08 00:44:52.0
Homepage:
null
Size: 9
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
Other Committers
User | Email | Most Recent Commit | # Commits |
README
Compute Engine Autoscaling Using Stackdriver Custom Metrics
This code is an example reference implementation for the Compute Engine Autoscaling Using Stackdriver Custom Metrics tutorial 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
- Follow the detailed steps in the Compute Engine Autoscaling Using Stackdriver Custom Metrics tutorial to configure and deploy the code