google-cloud-platform - GCP 监控无法从 asia-southeast1-b 获取指标

标签 google-cloud-platform stackdriver google-cloud-monitoring

我有几个 GCE 实例位于两个区域:asia-southeast1-bus-east4-c。所有实例均已安装 stackdriver 代理。在指标资源管理器中,我在 CPU 负载 指标中找不到 asia-southeast1-b:

enter image description here

但是CPU 使用率 没问题:

enter image description here

这有什么问题吗?

最佳答案

您可以在 asia-southeast1-b 中部署的虚拟机内执行此命令吗:

grep collectd /var/log/{syslog,messages} | tail

这将显示代理是否有任何错误。

据我了解,该指标(CPU 负载)是从 Stackdriver 代理重新收集的,然后发送到监控。 让我们看看我们是否能理解发生了什么:

  • Stackdriver Agent 收集该指标是否存在问题?

  • 或者在摄取Monitoring API时是否存在问题?

问你几个问题:

  • 与 us-east4-c 中运行的操作系统相比,您在 asia-southeast1-b 上的实例上使用的操作系统是否不同?
  • 您运行的是哪个版本的 Stackdriver? 在此链接中,您将能够确定您安装的版本。[2]

  • 您是否对 Stackdriver 代理的配置进行了任何更改?该文件位于/etc/stackdriver/collectd.conf

最诚挚的问候,


[1] https://cloud.google.com/monitoring/agent/install-agent#agent-version

关于google-cloud-platform - GCP 监控无法从 asia-southeast1-b 获取指标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61224157/

相关文章:

google-app-engine - 使用 Google Cloud Dataflow 合并平面文件并导入 Cloud SQL

google-cloud-platform - 我无法让 google cloud functions gen 2 仅处理来自 API 网关后面的授权请求

google-cloud-platform - 服务帐号将自定义指标写入 GCP 中的 Stackdriver 的正确 IAM 角色是什么

docker - 与docker托管实例组,自动堆栈驱动程序日志记录

google-cloud-platform - 使用 MS Teams 的 GCP 监控警报通知 channel (Web Hook )

google-cloud-platform - 基于 GCP 日志的指标不适用于正则表达式过滤器

python - 如何在谷歌云平台上运行django测试

python - 谷歌云函数部署 "allow unauthenticated invocations..."

kubernetes - 如何从 Stackdriver 跟踪 Google Container Engine 服务?

google-cloud-platform - 当没有数据上传到 GCP 中的 BigQuery 表时创建警报