本文說明 Developer Connect 洞察資料,以及洞察資料可帶來的效益。
透過 Developer Connect 洞察資料,您可以診斷應用程式的問題,找出可能導致服務中斷的原因,進而解決這些問題。
Developer Connect 洞察資料是部署事件的記錄檔項目,會從 Developer Connect 傳送至 Cloud Logging,供 Gemini Cloud Assist 使用。
這些洞察資訊會提供應用程式執行階段、部署至這些執行階段的構件,以及用於建構這些構件的來源檔案和依附元件等資訊給 Gemini Cloud Assist。
Developer Connect 洞察資料的運作方式
Developer Connect Insights 的功能如下:
- 發生中斷時,Developer Connect 洞察資料可縮短找出根本原因和復原的時間
- 如果執行中的應用程式在正式環境中發生問題,Developer Connect 洞察功能可協助您找出根本原因,並快速實作修正措施
為此,Developer Connect Insights 會繪製軟體開發生命週期 (SDLC) 中下列元件之間的關係:
- 應用程式執行階段環境
- 部署至這些執行階段的應用程式構件
- 建構作業來源資訊
Developer Connect Insights 會使用這些關係匯總軟體開發生命週期中的相關事件,並將這些關係做為背景資訊,協助您解決問題及做出決策。Developer Connect 洞察資料會將這些事件記錄到 Cloud Logging。
如何運用 Developer Connect 洞察資料?
以下列舉幾個可從 Developer Connect Insights 取得的資訊。
發生中斷和生產問題時,SRE 可以透過回答下列問題,縮短找出根本原因和從中斷狀態復原的時間:
自 2024 年 10 月 10 日東部時間上午 10:10:10 起,
us-east1的my-app有哪些異動?部署了哪些構件,以及部署時間?
構件是何時建構的?來自哪個來源,以及哪些提交?
哪些部署作業可能導致我們目前看到的正式環境問題?
部署作業影響了哪些構件,以及部署至哪些應用程式執行階段?
使用 Developer Connect Insights 需要哪些條件?
如要取得 Developer Connect 洞察資料,必須使用下列 Google Cloud 產品和工具:
App Hub 應用程式 (選填)
如要將 Developer Connect 洞察資料設定範圍限定在 App Hub 應用程式,您必須擁有 App Hub 應用程式。
Developer Connect Insights 支援應用程式的所有 App Hub 設定模型。建議您使用已設定應用程式管理的資料夾,以便使用 Gemini Cloud Assist 和其他以應用程式為中心的功能
Google Cloud 專案 (選填)
您可以選擇將 Developer Connect 洞察資料設定的範圍設為Google Cloud 專案,而不是 App Hub 應用程式。這個專案不一定要與您建立 Developer Connect 洞察資料設定資源的專案相同。
Developer Connect
您需要啟用 Developer Connect API。
建構作業來源資訊
容器映像檔必須有對應的建構作業來源資訊,供 Developer Connect 洞察資料功能尋找。詳情請參閱「設定 Developer Connect Developer Connect Insights」,包括 Developer Connect Insights 可從中擷取出處的來源。
Gemini Cloud Assist
您可以啟用 Gemini Cloud Assist,在 Gemini Cloud Assist 調查中使用 Developer Connect 洞察資料。Developer Connect Insights 會將應用程式部署事件新增至 Gemini Cloud Assist 調查內容。
Developer Connect 洞察支援哪些執行階段環境
Developer Connect 洞察資料僅支援 Google Kubernetes Engine 和 Cloud Run。
後續步驟
- 設定 Developer Connect 洞察
- 瞭解如何運用 Developer Connect Insights