Chart request counts per repository in the Metrics Explorer

This page describes how you can chart Artifact Registry request count metrics inthe Metrics Explorer, and manipulate the chart by different parameters suchas read requests, write requests, method and repository ID.

Required roles

To get the permissions that you need to view monitoring data and configuration information, ask your administrator to grant you theMonitoring Viewer (roles/monitoring.viewer) IAM role on the Google Cloud project. For more information about granting roles, seeManage access to projects, folders, and organizations.

You might also be able to get the required permissions throughcustom roles or otherpredefined roles.

For more information about controlling access to monitoring data, readControl access with IAM.

Chart API request counts per repository

When using Metrics Explorer, you can select the data to chart by makingselections in the menus or by entering a PromQL query. For more informationabout creating charts, seeCreate a chart in the Metrics Explorer.

To view the metrics for a monitored resource by using theMetrics Explorer, do the following:

  1. In the Google Cloud console, go to the Metrics explorer page:

    Go toMetrics explorer

    If you use the search bar to find this page, then select the result whose subheading isMonitoring.

  2. In the toolbar of the Google Cloud console, select your Google Cloud project. ForApp Hub configurations, select the App Hub host project or the app-enabled folder's management project.
  3. In theMetric element, expand theSelect a metric menu, enterArtifact Registry in the filter bar, and then use the submenus to select a specific resource type and metric:
    1. In theActive resources menu, selectArtifact Registry Repository.
    2. In theActive metric categories menu, selectRepository.
    3. In theActive metrics menu, selectData plane API request count per repository. Data plane API requests are made by tools likeDocker, Maven, Pip, Twine, or Gradle tools that make requests to the data-planeAPI. You can view all methods that create requests to the data-plane API inData plane API.

      If you want to view control plane API requests made by methods listed ingoogle.devtools.artifactregistry.v1.ArtifactRegistry,then selectControl plane API request count per repository.

    4. ClickApply.
    The fully qualified name for this metric isartifactregistry.googleapis.com/repository/request_count.
  4. To add filters, which remove time series from the query results, use theFilter element.

  5. Configure how the data is viewed. To specify a subset of data to display, in theFilter element, selectAdd filter, and then complete the dialog.

    For example, you can view data for the following:

    • Read requests: apply a filter for theMetric labeltype equal to thevalueREAD.
    • Write requests: apply a filter for theMetric labeltype equal to thevalueWRITE.
    • Method: apply a filter for theMetric labelmethod with a value fromthe methods listed in theData plane API. Forexample, apply a filtermethod equal to the value ofDocker-DeleteBlobto filter for image layer deletion.
    • Repository ID: apply a filter for theMetric labelrepository_id equalto the repository ID. For examplemy-repo.

      For more information about configuring a chart, seeSelect metrics when using Metrics Explorer.

You can add multiple filters. For more information on filtering data, seeFilter charted data andthe labels descriptions for Artifact Registry metrics in the list ofGoogle Cloud Metrics.

For more information on selecting data, seeSelect the data to chart.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.