使用 Cloud Monitoring 监控指标

您可以通过 Google Cloud Monitoring 获取有关集成的实用用量指标。使用 Cloud Monitoring 可以创建信息中心和微件、设置提醒,并以编程方式访问指标数据

转到 Cloud Monitoring

信息中心

Google Cloud Monitoring dashboard 页面上,您可以找到以下预定义信息中心,其中会显示有关集成的各种图表和指标。

  • Google Home Analytics:显示所有集成的汇总指标。
  • Google Home Analytics - 云集成:显示有关 Cloud-to-cloud 集成的详细指标和执行统计信息。
  • Google Home Analytics - 本地集成:显示有关 Local Home SDK 集成的详细指标和执行统计信息。
  • Google Home Analytics - Matter 集成:显示有关 Matter 集成的详细指标和执行统计信息。
  • Google Home Analytics - 摄像头质量:显示有关摄像头的更多指标和执行统计信息,包括 WebRTC 等流式传输协议的问题排查指标。

您也可以浏览示例库或创建自己的信息中心。

访问信息中心

您可以通过多种方式来访问 Monitoring dashboard(也称为 Analytics)。

  • 如需从 Actions on Google Console访问 Cloud Monitoring,请选择您的项目,然后点击 Analytics > Go to Google Cloud Platform
  • 如需从 Google Cloud Console 访问 Cloud Monitoring,请点击查看所有产品,然后转到操作 > 监控
  • 最后,您可以直接前往 Monitoring 信息中心。下面的按钮可将您定向到您最近访问的 Google Cloud 项目的信息中心:
    Monitoring dashboard

默认值和可见性

仅当您具有过去 14 天的项目指标时,系统才会显示预定义信息中心。

信息中心图表默认显示过去一小时的数据。如果您的数据未显示,请使用时间选项相应地调整时间范围。

支持的指标

Cloud Monitoring 可监控 assistant_action_project 资源类型,并提供以下指标:

指标 类型 说明
smarthome_action/request_count DELTA intent 请求计数,带有 execution_typestatustrait 标签。

execution_type(字符串):智能家居 intent 类型。

status(字符串):请求的结果。

trait(字符串):智能家居设备特征。没有关联特征的事件,带有 UNKNOWN 标签。
smarthome_action/request_latencies CUMULATIVEDISTRIBUTION intent 请求的延迟时间分布图,带有 execution_typestatustrait 标签。

execution_type(字符串):智能家居 intent 类型。

status(字符串):请求的结果。

trait(字符串):智能家居设备特征。没有关联特征的事件,带有 UNKNOWN 标签。
smarthome_action/num_active_users GAUGE 日活跃用户数,带有 trait 标签。

trait(字符串):智能家居设备特征。没有关联特征的事件,带有 UNKNOWN 标签。
smarthome_action/seven_day_active_users GAUGE 周活跃用户数,带有 trait 标签。

trait(字符串):智能家居设备特征。没有关联特征的事件,带有 UNKNOWN 标签。
smarthome_action/twenty_eight_day_active_users GAUGE 月活跃用户数,带有 trait 标签。

trait(字符串):智能家居设备特征。没有关联特征的事件,带有 UNKNOWN 标签。

如需查看和查询指标,请点击 Cloud Monitoring 中的 Metrics explorer

转到 Metrics explorer

如需详细了解如何在项目中使用 Cloud Monitoring,请参阅以下文档

  • 价格:有关配额和超额费用的详细信息。
  • 配额和限制:有关用于监控用量的限制和保留政策的详细信息。