您可以取得與 Google 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。
- 如要存取Cloud-to-cloud整合,請前往Cloud MonitoringActions on Google Console,選取專案,然後依序點選「Analytics」 >「Go to Google Cloud Platform」。
- 如要存取 Matter 整合的 Cloud Monitoring,請在 Google Home Developer Console 中點選「數據分析」標題下方的「查看」。如果專案已開啟,請按一下主選單中的「數據分析」。
- 如要存取 Cloud Monitoring,請依序點選 Google Cloud Console >「查看所有產品」>「作業」>「監控」。
- 最後,您可以直接前往「監控」資訊主頁。按一下下方按鈕,即可前往您最近存取的「Google Cloud」專案資訊主頁:
Monitoring dashboard
預設值和瀏覽權限
只有在過去 14 天內有可用的專案指標時,系統才會顯示預先定義的資訊主頁。
資訊主頁圖表預設會顯示過去 1 小時的資料。如果沒有顯示資料,請使用「時間」選取畫面,視需要調整時間範圍。
支援的指標
Cloud Monitoring 會監控 assistant_action_project
資源類型,並提供下列指標:
指標 | 種類 | 說明 |
---|---|---|
smarthome_action/request_count |
DELTA |
意圖要求計數,標示為 execution_type 、status 和 trait 。execution_type (字串):智慧住宅意圖類型。
status (字串):要求結果。
trait (字串):智慧住宅裝置特徵。沒有相關聯特徵的活動會顯示 UNKNOWN 標籤。
|
smarthome_action/request_latencies |
累積、分配 |
意圖要求延遲時間的分布,標示為 execution_type 、status 和 trait 。execution_type (字串):智慧住宅意圖類型。
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,請參閱下列說明文件: