Stackdriver Monitoring collects metrics, events, and metadata from Google Cloud Platform, Amazon Web Services (AWS), hosted uptime probes, application instrumentation, and a variety of common application components including Cassandra, Nginx, Apache Web Server, Elasticsearch and many others.
-
Read Prerequisites and How to run a sample first.
-
Install dependencies:
npm install
list_resources.js
is a command-line program to demonstrate connecting to the Google
Monitoring API to retrieve API data.
View the documentation or the source code.
Run the sample:
node list_resources <your-project-id>
create_custom_metric.js
demonstrates how to create a custom metric, write a timeseries value to it,
and read it back.
View the documentation or the source code.
Run the sample:
node create_custom_metric <your-project-id>