The Google Cloud Monitoring and Logging backends only works in Google Compute Engine today.
Bring up a Kubernetes cluster, if you haven't already. Ensure that kubecfg.sh
is exported.
Start the Heapster service on the cluster:
$ kubectl.sh create -f deploy/kube-config/google/
Heapster metrics are now being exported to Google Cloud Monitoring as custom metrics. Heapster events are now being exported to Google Cloud Logging as custom logs.
To access the Google Cloud Monitoring dashboard go to: https://app.google.stackdriver.com/. Create a new dashboard and add the desired charts. Select the Custom Metric Resource Type and all Heapster metrics are under the kubernetes.io
namespace. You can narrow down the query by the metric labels provided.
It is also possible to query the Google Cloud Monitoring data directly using their custom metric read API.
To access events via Google Cloud Logging dashboard go to Google Developer Console and select 'Logs' under 'Monitoring' in your project. In the Logs dashboard, select custom.googleapis.com
as the logs source.