This page describes the resources available for administrators to monitor activity and growth in Artifact Registry resources using Google Cloud Observability services.
By default, Artifact Registry is configured to do the following:
- Send system logs and audit logs to Cloud Logging
- Send system metrics and resource metrics to Cloud Monitoring
For more information, read Observability in Google Cloud.
Collected logs
Artifact Registry sends the following types of audit log data to Cloud Logging:
Data Access audit logs are disabled by default because these audit logs can be quite large. For more information about Audit logs in Artifact Registry, see Audit Logging.
Query and view logs
You can use following tools to view and analyze your logs:
- Logs Explorer is designed to to help you troubleshoot and analyze the performance of your services and applications. To learn how to view logs in the Logs Explorer, follow the instructions in View logs by using the logs explorer.
- Log Analytics is designed to run queries to analyze your logs, and then view or chart the results. To learn how to use Log Analytics, follow the instructions in Query and analyze logs in Log Analytics.
You can filter for Artifact Registry logs in the Logs Explorer by searching
for artifactregistry
in the search field.
For more information about querying and analyzing logs, see Query and view logs overview.
Pricing
Cloud Logging doesn't charge to route logs to a
supported destination; however, the destination might apply charges.
With the exception of the _Required
log bucket,
Cloud Logging charges to stream logs into log buckets and
for storage longer than the default retention period of the log bucket.
Cloud Logging doesn't charge for copying logs, for defining log scopes, or for queries issued through the Logs Explorer or Log Analytics pages.
For more information, see the following documents:
- Cloud Logging pricing summary
Destination costs:
- VPC flow log generation charges apply when you send and then exclude your Virtual Private Cloud flow logs from Cloud Logging.
Collected metrics
Artifact Registry sends metric data from the following monitored-resources to Google Cloud Observability.
To view all metrics sent by Artifact Registry to Google Cloud Observability, see Artifact Registry Metrics.
For more information about metrics, read Metrics, time series, and resources.
Artifact Registry location
Both logs-based metrics and quota metrics write data against the location resource.
Artifact Registry project
Metrics that are written against the project resource include request counts and request latency per project for control plane API requests and data plane API requests. Requests to create and modify repositories are control plane API requests, while tools such as Docker, Maven, or pip send requests to the data plane API.
Repository
Metrics that are written against the repository resource include request counts and request latency per repository for control plane API requests and data plane API requests, as well as repository size over time.
Query and view metrics
You can use the Metrics Explorer to create a chart that displays data for a single metric type, or for multiple metric types. After you create a chart, you can discard it , save it to a custom dashboard, or share it.
To get started using the Metrics Explorer to view Artifact Registry metrics, follow the instructions in Chart request counts per repository in the Metrics Explorer.
Pricing
In general, Cloud Monitoring system metrics are free, and metrics from external systems, agents, or applications are not. Billable metrics are billed by either the number of bytes or the number of samples ingested.
For more information about Cloud Monitoring pricing, see the following documents:
What's next
- Configure monitoring alerts for repository growth.
- Chart request counts per repository in the Metrics Explorer.
- Read more about how to create charts with Metrics Explorer.