This section contains samples for Google Cloud Monitoring.
-
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 Cloud Monitoring you can visit:
For more information on the Stackdriver Monitoring API Python library surface you can visit:
https://developers.google.com/resources/api-libraries/documentation/storage/v2beta2/python/latest/
For information on the Python Client Library visit: