您可以通过 Google Cloud Monitoring获取有关集成的实用用量指标。使用 Cloud Monitoring可以创建信息中心和 微件、设置 提醒,并 程序化地访问指标数据。
信息中心
在 Google Cloud Monitoring dashboard 页面上,您可以找到以下 预定义信息中心 ,其中会显示有关集成的各种图表和指标。
- Google Home Analytics:显示所有 集成的汇总指标。
- Google Home Analytics - Cloud Integration:显示有关 Cloud-to-cloud 集成的详细指标 和执行统计信息。
- Google Home Analytics - Cloud Integration Quality:查看Cloud-to-cloud集成质量的关键指标 ,以及用于改进这些指标的调试步骤 。
- Google Home Analytics - Local Integration:显示有关 Local Home SDK 集成的详细指标 和执行统计信息。
- Google Home Analytics - Matter 集成: 显示有关您的 Matter 集成的详细指标和执行统计信息。
- Google Home Analytics - Camera Quality:显示有关摄像头的更多指标 和执行统计信息,包括 WebRTC 等流式传输协议的问题排查指标。
您也可以浏览示例库或创建自己的信息中心。
访问信息中心
您可以通过多种方式来访问 Monitoring dashboards(也称为 Analytics)。
- 如需从Cloud Monitoring 的“项目”列表中访问 Google Home Developer Console, 请点击 分析 标题中的查看 。如果您的项目已打开,请点击主菜单中的分析 。
- 如需从 Google Cloud Console访问Cloud Monitoring,请点击查看所有商品,然后依次前往操作 > 监控。
- 最后,您可以直接前往 Monitoring 信息中心。点击下面的按钮,即可前往您最近访问的 Google Cloud 项目的信息中心:
Monitoring dashboard
默认值和可见性
仅当您具有过去 14 天的项目指标时,系统才会显示预定义信息中心。
信息中心图表默认显示过去一小时的数据。如果您的数据未显示,请使用时间 选项相应地调整时间范围。
支持的指标
Cloud Monitoring 可监控 assistant_action_project 资源类型,
并提供以下指标:
| 指标 | 类型 | 说明 |
|---|---|---|
smarthome_action/request_count |
DELTA |
intent 请求计数,带有 execution_type、status 和 trait 标签。
execution_type(字符串):智能家居 intent 类型。
status(字符串):请求的结果。
trait(字符串):智能家居设备特征。没有关联特征的事件,带有 UNKNOWN 标签。
|
smarthome_action/request_latencies |
CUMULATIVE、DISTRIBUTION |
intent 请求的延迟时间分布图,带有 execution_type、status 和 trait 标签。
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 标签。 |
如需查看和查询指标,请点击 Metrics explorer 中的 Cloud Monitoring。