This section contains samples for Google Compute Engine.
-
Your environment must be setup with authentication information. Note that Cloud Monitoring does not currently work with
gcloud auth
. You will need to use a service account when running locally and set theGOOGLE_APPLICATION_CREDENTIALS
environment variable.$ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
-
Install dependencies from
requirements.txt
$ pip install -r requirements.txt
-
Depending on the sample, you may also need to create resources on the Google Developers Console. Refer to the sample description and associated documentation page.
For more information on Compute Engine you can visit:
For more information on the Cloud Monitoring API Python library surface you can visit:
https://developers.google.com/resources/api-libraries/documentation/compute/v1/python/latest/
For information on the Python Client Library visit: