Artifact Registry 中的觀測功能
本頁說明管理員可用的資源,方便他們使用 Google Cloud Observability 服務,監控 Artifact Registry 資源的活動和成長情況。
根據預設,Artifact Registry 會設定為執行下列操作:
- 將系統記錄和稽核記錄傳送至 Cloud Logging
- 將系統指標和資源指標傳送至 Cloud Monitoring
詳情請參閱
Cloud Monitoring 總覽和
Cloud Logging 總覽。
收集到的記錄
Artifact Registry 會將下列類型的稽核記錄資料傳送至 Cloud Logging:
資料存取稽核記錄預設為停用,因為這些記錄可能相當龐大。如要進一步瞭解 Artifact Registry 中的稽核記錄,請參閱稽核記錄。
查詢及查看記錄
您可以使用下列工具檢視及分析記錄:
- 記錄檔探索工具可協助您排解服務和應用程式的疑難,並分析效能。如要瞭解如何在記錄檔探索工具中查看記錄,請按照「使用記錄檔探索工具查看記錄檔」一文中的操作說明進行。
在記錄檔探索工具中,於搜尋欄位輸入 artifactregistry
,即可篩選 Artifact Registry 記錄。
如要進一步瞭解如何查詢及分析記錄,請參閱「查詢和查看記錄檔總覽」一文。
如要查看定價資訊,請參閱 Google Cloud Observability 定價頁面的 Cloud Logging 專區。
收集的指標
Artifact Registry 會將下列受監控資源的指標資料傳送至 Google Cloud Observability。
如要查看 Artifact Registry 傳送至 Google Cloud Observability 的所有指標,請參閱「Artifact Registry 指標」。
如要進一步瞭解指標,請參閱「指標、時間序列和資源」一文。
Artifact Registry 專案
針對專案資源寫入的指標包括控制層 API 要求和資料層 API 要求的專案要求計數和要求延遲。建立及修改存放區的要求屬於控制層 API 要求,而 Docker、Maven 或 pip 等工具會將要求傳送至資料層 API。
存放區
針對存放區資源寫入的指標包括控制層 API 要求和資料層 API 要求的每個存放區要求計數和要求延遲時間,以及存放區大小隨時間的變化。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-19 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-19 (世界標準時間)。"],[[["\u003cp\u003eArtifact Registry sends system and audit logs to Cloud Logging, and system and resource metrics to Cloud Monitoring by default, enabling administrators to monitor activity and growth.\u003c/p\u003e\n"],["\u003cp\u003eCloud Logging collects Admin Activity, Data Access, Events, and Policy Denied logs from Artifact Registry, with Data Access logs being disabled by default due to their potentially large size.\u003c/p\u003e\n"],["\u003cp\u003eLogs can be viewed and analyzed using the Logs Explorer and Log Analytics, with the ability to filter specifically for Artifact Registry logs by searching for \u003ccode\u003eartifactregistry\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eArtifact Registry sends metric data from various monitored resources such as location, project, and repository to Google Cloud Observability, and these can be viewed through the Metrics Explorer.\u003c/p\u003e\n"],["\u003cp\u003eCloud Logging charges for streaming logs into log buckets and for storage beyond the default retention period, while Cloud Monitoring system metrics are generally free, with external metrics being billable.\u003c/p\u003e\n"]]],[],null,[]]