您可以取得與 Google Cloud Monitoring 整合的實用用量指標。使用 Cloud Monitoring 建立資訊主頁和小工具、設定快訊,以及透過程式輔助方式存取指標資料。
資訊主頁
在「Google Cloud Monitoring dashboard」頁面中,您可以找到下列預先定義的資訊主頁,其中會顯示整合項目的各種圖表和指標。
- Google Home Analytics:顯示所有整合項目的匯總指標。
- Google Home Analytics - Cloud 整合:顯示 Cloud-to-cloud 整合的詳細指標和執行統計資料。
- Google Home Analytics - 雲端整合品質:查看 Cloud-to-cloud 整合品質的主要指標,以及改善這些指標的偵錯步驟。
- Google Home Analytics - Local Integration:顯示 Local Home SDK 整合的詳細指標和執行統計資料。
- Google Home Analytics - Matter 整合:顯示 Matter 整合的詳細指標和執行統計資料。
- Google Home Analytics - 攝影機品質:顯示攝影機的其他指標和執行統計資料,包括 WebRTC 等串流通訊協定的疑難排解指標。
您也可以瀏覽範例庫或自行建立。
存取資訊主頁
您可以透過多種方式存取 Monitoring dashboard (也稱為 Analytics)。
- 如果是 Cloud-to-cloud 整合,如要從Actions on Google Console存取 Cloud Monitoring,請選取專案,然後依序點選「Analytics」 >「前往 Google Cloud Platform」。
- 如要從Google Home Developer Console存取Matter整合項目的Cloud Monitoring,請按一下「Analytics」標題中的「View」。如果專案已開啟,請按一下主選單中的「Analytics」。
- 如要從Google Cloud Console存取 Cloud Monitoring,請按一下「View all products」(查看所有產品),然後依序前往「Observability」(觀測能力) >「Monitoring」(監控)。
- 最後,您可以直接前往 Monitoring 資訊主頁。點選下方按鈕,即可前往您最近存取的 Google Cloud 專案資訊主頁:
Monitoring dashboard
預設值和瀏覽權限
只有在過去 14 天內有專案指標時,系統才會顯示預先定義的資訊主頁。
資訊主頁圖表預設顯示過去一小時的資料。如果資料未顯示,請使用「TIME」(時間) 選項,據此調整時間範圍。
支援的指標
Cloud Monitoring 會監控 assistant_action_project 資源類型,並提供下列指標:
| 指標 | 種類 | 說明 |
|---|---|---|
smarthome_action/request_count |
DELTA |
意圖要求數量,標示為 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 |
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,請參閱下列說明文件: