Using Console
Using CLI
Using Python
google-cloud-monitoring
and google-cloud-logging
Python libraries using pip
.GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of the service account key file.
google-cloud-monitoring
and google-cloud-logging
libraries to enable Stackdriver Kubernetes logging and monitoring.project_id
with your GCP project ID.