GKE 上新创建的 Kubernetes 集群不会将其指标推送到 Stackdriver。的输出kubectl cluster-info
是:
Kubernetes master is running at https://XXX.XXX.XXX.XXX
KubeDNS is running at https://XXX.XXX.XXX.XXX/api/v1/proxy/namespaces/kube-system/services/kube-dns
KubeUI is running at https://XXX.XXX.XXX.XXX/api/v1/proxy/namespaces/kube-system/services/kube-ui
Heapster is running at https://XXX.XXX.XXX.XXX/api/v1/proxy/namespaces/kube-system/services/monitoring-heapster
当我尝试使用“自定义指标”在 Stackdriver 上创建仪表板时,它显示“未找到匹配项”。根据 Heapster 文档,指标应该以“kubernetes.io”前缀出现在此位置。
在创建集群时,我还启用了具有读写权限的 Cloud Monitoring API。推送集群指标是否需要?