<p>My GKE clusters are not monitored by Stackdriver, despite having Cloud Monitoring enabled. In particular <a href="https://app.google.stackdriver.com/gke" rel="nofollow noreferrer">https://app.google.stackdriver.com/gke</a> simply reports &quot;You do not have any resources of this type being monitored by Stackdriver&quot;.</p>
<ul>
<li>Clusters running Kubernetes 1.2.4, created in mid-May 2016.</li>
<li>Some had Cloud Monitoring enabled on creation, some had it enabled via <code>gcloud container clusters update serve --monitoring-service=monitoring.googleapis.com</code>.</li>
<li>All clusters are running the <code>heapster</code> pod with 2/2 ready, status of Running, no restarts e.g. as <code>heapster-v1.0.2-594732231-76sdj</code>.</li>
<li>All clusters are running the <code>heapster</code> service with a cluster IP, no external IP and port 80/TCP.</li>
<li>Logs of <code>heapster</code> pod, <code>heapster</code> container look like:</li>
</ul>
<blockquote>
<p>I0609 09:15:05.000189       1 manager.go:79] Scraping metrics start: 2016-06-09 09:14:00 +0000 UTC, end: 2016-06-09 09:15:00 +0000 UTC</p>
<p>I0609 09:15:05.023729       1 manager.go:152] ScrapeMetrics: time: 23.435264ms size: 25</p>
</blockquote>
<ul>
<li>Logs of <code>heapster</code> pod, <code>heapster-nanny</code> container look like:</li>
</ul>
<blockquote>
<p>I0609 09:18:03.968201       1 nanny_lib.go:90] The number of nodes is 1</p>
<p>I0609 09:18:03.971459       1 nanny_lib.go:98] The container resources are &amp;{map[memory:{213909504.000000000 BinarySI} cpu:{0.100000000 DecimalSI}] map[cpu:{0.100000000 DecimalSI} memory:{213909504.000000000 BinarySI}]}</p>
<p>I0609 09:18:03.971522       1 nanny_lib.go:102] The expected resources are &amp;{map[cpu:{0.100000000 DecimalSI} memory:{218103808.000000000 BinarySI}] map[cpu:{0.100000000 DecimalSI} memory:{218103808.000000000 BinarySI}]}</p>
<p>I0609 09:18:03.971634       1 nanny_lib.go:106] Resources are within the expected limits.</p>
</blockquote>
<ul>
<li><a href="https://status.cloud.google.com" rel="nofollow noreferrer">https://status.cloud.google.com</a> shows all services green.</li>
</ul>

<p>it turns out that Stackdriver had a problem of not properly displaying new-ish clusters in its UI. Metrics were being properly collected and were available via <a href="https://cloud.google.com/monitoring/api/v3/" rel="nofollow">their API</a> the entire time. The problem should now be resolved, but the team is very sorry for any trouble this caused and will work to catch problems like this more quickly.</p>
