10

I have a cluster in Google Cloud. But I need to know information about resources usage. In interface of each node there are three graphics about CPU, memory and disk usage. But all this graphics in the each node have warning "No data for this time interval" for any time interval.

no data in any resource usage

I upgraded all clusters and nodes to the latest version 1.15.4-gke.22 and changed "Legacy Stackdriver Logging" to "Stackdriver Kubernetes Engine Monitoring".

Stackdriver Kubernetes Engine Monitoring enabled

But it didn't help. In Stackdriver Workspace there is only "disk_read_bytes" with graphics, any other requests in Metric Explorer have only message "No data for this time interval"

no data for this time interval

If I do request "kubectl top nodes" in the command line, I see current data for CPU and memory. But I need to see it on Node detail page to understand the peak load. How can I configure it?

4
  • I don't think you're doing anything wrong - seems like there's something wrong with the monitoring configuration. The only other thing to check would be to make sure that your nodes are configured with the appropriate scopes for monitoring. Commented Jan 13, 2020 at 0:36
  • Yuri, how can I check it? Where is the configuration of monitoring scopes?
    – Verter
    Commented Jan 13, 2020 at 13:49
  • This question is of topic per meta.stackoverflow.com/questions/255745/… if you need to report and issue with GCP products please use the appropriate channels as posted in the answer below or open a public issue via cloud.google.com/support/docs/issue-trackers
    – Ernesto U
    Commented Jan 14, 2020 at 16:58
  • 1
    Here's some good instructions:adilsoncarvalho.com/… Commented Jan 14, 2020 at 17:09

2 Answers 2

13

In my case, I was missing permissions on the IAM service account associated with the cluster - make sure it has the roles:

  • Monitoring Metrics Writer (roles/monitoring.metricWriter)
  • Logs Writer (roles/logging.logWriter)
  • Stackdriver Resource Metadata Writer (roles/stackdriver.resourceMetadata.writer)

This is documented here

1
  • In my case, it was "Compute Engine default service account". Thank you
    – Verter
    Commented Nov 15, 2021 at 20:07
0

Actually it sound strange because if you can get metrics in command line and the Stackdriver interface doesn't show them maybe it's a bug.

I recommend this: if you be able, create a cluster with the minimum resources, check the same Stackdriver metrics and if there are metrics, it can be a bug and you can report it on in the appropriate GCP channel.

Check the documentation about how to get support within GCP:

Best Practices for Working with Cloud Support

Getting support for Google Cloud

Not the answer you're looking for? Browse other questions tagged or ask your own question.