您可以取得與 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 (分析) > 前往 Google Cloud Platform。
- 如要從 Google Cloud Platform Console 存取 Cloud Monitoring,請按一下 [View all products] (查看所有產品),然後依序前往 Operations > Monitoring。
預設和顯示設定
只有當您有過去 14 天的專案指標可用時,預先定義的資訊主頁才會顯示。
資訊主頁圖表預設顯示過去一小時的資料。如果資料未顯示,請使用 TIME 選項據此調整時間範圍。
支援的指標
Cloud Monitoring 會監控 assistant_action_project
資源類型,並提供下列指標:
指標 | 種類 | 說明 |
---|---|---|
smarthome_action/request_count |
具有 execution_type 、status 和 trait 標籤的意圖要求數量。execution_type (字串):智慧住宅意圖類型。
status (字串):要求的結果。
trait (字串):智慧住宅裝置特性。沒有相關特徵的事件會加上「UNKNOWN 」標籤。 |
|
smarthome_action/request_latencies |
CUMULATIVE、DISTRIBUTION |
針對意圖要求的延遲時間分佈情形,加上 execution_type 、status 和 trait 標籤。execution_type (字串):智慧住宅意圖類型。
status (字串):要求的結果。
trait (字串):智慧住宅裝置特性。沒有相關特徵的事件會加上「UNKNOWN 」標籤。 |
smarthome_action/num_active_users |
正式發布 |
加上 trait 標籤的每日活躍使用者人數。trait (字串):智慧住宅裝置特性。沒有相關特徵的事件會加上「UNKNOWN 」標籤。 |
smarthome_action/seven_day_active_users |
正式發布 |
每週活躍使用者,加上 trait 標籤。trait (字串):智慧住宅裝置特性。沒有相關特徵的事件會加上「UNKNOWN 」標籤。 |
smarthome_action/twenty_eight_day_active_users |
正式發布 |
每月活躍使用者,加上 trait 標籤。trait (字串):智慧住宅裝置特性。沒有相關特徵的事件會加上「UNKNOWN 」標籤。 |
如要查看及查詢指標,請按一下 Cloud Monitoring 的 Metrics explorer 。
相關資源
如要進一步瞭解如何在專案中使用 Cloud Monitoring,請參閱下列說明文件: