Google Cloud Observability 為 Python 應用程式提供監控、記錄和診斷功能。
下列 Google Cloud Observability 服務提供 Python 程式庫:
Error Reporting
Error Reporting 會匯總並顯示執行中的 Python 應用程式產生的錯誤。如要開始使用 Error Reporting,請參閱「檢測 Python 應用程式以使用 Error Reporting」。
Cloud Logging
Cloud Logging 可讓您儲存、搜尋、分析、監控 Python 應用程式中的記錄資料和事件,並設定相關警告。Logging 提供 Bunyan 和 Winston 外掛程式,以及 Python 適用的 Cloud 用戶端程式庫。如要開始使用 Logging,請參閱「設定 Python 適用的 Cloud Logging」。
Cloud Monitoring
Cloud Monitoring 會收集 Python 應用程式的指標、事件和中繼資料。Google Cloud Observability 會使用這些資料產生資訊主頁、圖表和警告。
如需詳細資訊,請參閱下列主題:
- Cloud Monitoring API 適用的 Cloud 用戶端程式庫
- 建立自訂指標
- 閱讀指標
- 瀏覽指標
- GitHub 上的 Cloud Monitoring API 適用的 Python 用戶端程式庫
Cloud Trace
Cloud Trace 是Google Cloud 的分散式追蹤系統,可收集應用程式的延遲資料,並近乎即時地顯示在 Google Cloud 控制台。詳情請參閱 Cloud Trace 說明文件。
如要在 Google Cloud Python 用戶端程式庫中啟用分散式追蹤功能,請參閱「檢測 Python 用戶端程式庫」。