您可以获取有关 Google Cloud Monitoring 集成的实用使用情况指标。使用 Cloud Monitoring 创建信息中心和微件,设置提醒,并以编程方式访问指标数据。
信息中心
在Google Cloud Monitoring dashboard page, you can find the following predefined dashboards that display various charts and metrics for your integrations.上
- Google Home Analytics :显示所有集成的汇总指标。
- Google Home Analytics - Cloud 集成:显示您 Cloud-to-cloud integration. 的详细指标和执行方式统计信息
- Google Home Analytics - 本地集成:显示 Local Home SDK integration. 的详细指标和执行方式统计信息
- Google Home Analytics - Matter Integration:显示 Matter 集成的详细指标和执行方式统计信息。
- Google Home Analytics - 相机质量:显示相机的更多指标和执行方式统计信息,包括 WebRTC 等流式传输协议的问题排查指标。
您也可以浏览示例库或创建自己的库。
访问信息中心
您可以通过多种方式访问 Monitoring dashboard(也称为 Analytics)。
- 如需从 Actions on Google Console 访问 Cloud Monitoring,请选择您的项目,然后点击 Analytics(分析) > Go to Google Cloud Platform(Google Cloud Platform)。
- 如需从 Google Cloud Console 访问 Cloud Monitoring,请点击查看所有产品,然后进入操作 > Monitoring。
- 最后,您可以直接转到 Monitoring 信息中心。以下按钮会将您转到 Google Cloud
project that you
accessed most recently:
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 标签。
|
如需查看和查询指标,请点击 Cloud Monitoring 中的 Metrics explorer 。
相关资源
如需详细了解如何在项目中使用 Cloud Monitoring,请参阅以下文档: