

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 與 CodeGuru Profiler 整合
<a name="integrating-with-profiler"></a>

本節提供 Amazon DevOpsGuru 如何與 Amazon CodeGuru Profiler 整合的概觀。您可以在 DevOps CodeGuru Guru主控台中，將 CodeGuru Profiler 的建議檢視為洞見。

Amazon DevOpsGuru 與 Amazon CodeGuru Profiler 整合了 EventBridge 受管規則。CodeGuru Profiler 會將事件傳送至 EventBridge。受管規則會路由使用預設事件匯流排傳送的事件。CodeGuru Profiler 的每個傳入事件都是主動異常報告。如需詳細資訊，請參閱[使用 EventBridge 搭配 CodeGuru Profiler](https://docs.aws.amazon.com/codeguru/latest/profiler-ug/working-with-eventbridge.html)。

DevOpsGuru 支援使用 EventBridge 的傳入事件。事件表示 DevOpsGuru 已識別的建議有所變更。CodeGuru Profiler 每 24 小時傳送一次活動訊號事件，以顯示事件的連續性。事件附帶 CodeGuru Profiler 建議資訊，以及運算資源的中繼資料。如需事件生命週期的資訊，請參閱 [Amazon EventBridge Events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html)。

當您設定 DevOpsGuru 時，DevOps 會在您的帳戶中建立 EventBridge 受管規則，以從其他服務路由事件。此規則路由至 DevOpsGuru。發生傳入事件時，會傳送通知。

事件匯流排會從 DevOpsGuru 等來源接收事件，並將其路由到與該事件匯流排相關聯的規則。如需事件匯流排的詳細資訊，請參閱[事件匯流排](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html)。

如需某些參數的資訊，請參閱 [Amazon EventBridge 事件](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html)。

若要在 DevOps Guru中接收 CodeGuru Profiler 洞見，您必須具備下列項目。
+ CodeGuru Profiler 必須啟用。如需啟用 CodeGuru Profiler 的資訊，請參閱[設定 CodeGuru Profiler](https://docs.aws.amazon.com/codeguru/latest/profiler-ug/setting-up.html)。
+ 必須啟用 DevOpsGuru。如需啟用 DevOpsGuru 的資訊，請參閱[啟用 DevOps](https://docs.aws.amazon.com/devops-guru/latest/userguide/getting-started-enable-service.html)Guru。
+ 在 CodeGuru Profiler 和 DevOpsGuru 的相同區域中，必須監控相同的資源。