Artifact Registry 中的可观测性
本页面介绍了管理员可使用哪些资源通过 Google Cloud Observability 服务监控 Artifact Registry 资源中的活动和增长情况。
默认情况下,Artifact Registry 会配置为执行以下操作:
- 将系统日志和审核日志发送到 Cloud Logging
- 将系统指标和资源指标发送到 Cloud Monitoring
如需了解详情,请参阅
Cloud Monitoring 概览和
Cloud Logging 概览。
收集的日志
Artifact Registry 会将以下类型的审核日志数据发送到 Cloud Logging:
数据访问审核日志默认处于停用状态,因为这些审核日志可能非常大。如需详细了解 Artifact Registry 中的审核日志,请参阅审核日志记录。
查询和查看日志
您可以使用以下工具来查看和分析日志:
通过在搜索字段中搜索 artifactregistry
,您可以在 Logs Explorer 中过滤 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 请求的每个代码库的请求数和请求延迟时间,以及代码库大小随时间的变化。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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,[]]