即使启用了 Stackdriver,GCE 磁盘利用率指标也处于非活动状态
我有一个使用容器优化操作系统的计算引擎实例。我设置了 stackdriver 来跟踪虚拟机实例的磁盘利用率。
我启用了 stackdriver 监控代理,因此使用 gcloud 命令
gcloudcompute --project=
我还启用了将 google-logging-enabled
元数据设置为 true,并且每次我都会重新启动虚拟机按照 GCP 文档的指示更新了元数据。
执行此操作后,我已确认以下容器正在运行:
- stackdriver-logging-agent
- stackdriver-metadata-agent
- stackdriver-monitoring-agent
尽管如此,GCP Console Metric Explorer 表明我旨在跟踪的指标(磁盘利用率)是不活动*。话虽如此,我的预感是日志可能没有从虚拟机发送到 GCP。
有什么想法吗?
I have a Compute Engine Instance using a Container-optimized OS. I had setup stackdriver in order to track disk utilization of the VM instance.
I enabled the stackdriver monitoring agent so using the gcloud command
gcloud compute --project=<PROJECT> instances add-metadata <VM_INSTANCE> --metadata=google-monitoring-enabled=true
I also enabled set the google-logging-enabled
metadata to true and have restarted the VM each time I updated the metadata as instructed by GCP Documentation.
Upon doing so, I have confirmed that the following containers are running:
- stackdriver-logging-agent
- stackdriver-metadata-agent
- stackdriver-monitoring-agent
Despite this, the GCP Console Metric Explorer indicates that the metric I aim to track (Disk Utilization) is inactive*. Having said that, my hunch is that there may be a possibility that the logs are not being sent from the VM to GCP.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论