This sample demonstrates the use of the Cloud Monitoring API using the Google APIs JavaScript Client Library. For more information about the Monitoring API, please see the documentation:
https://developers.google.com/cloud/eap/cloud-monitoring/
-
Update the API Key and Client ID in the monitoring.js file with your own OAuth 2.0 credentials. For more information, see the Google APIs JavaScript Client Library documentation:
https://developers.google.com/api-client-library/javascript/features/authentication
-
Download the dependencies and install in the scripts/ and css/ directories, or update the URLs in the index.html file to point to hosted versions of the dependencies.