Anzahl der Diagrammanfragen pro Repository im Metrics Explorer
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite wird beschrieben, wie Sie Messwerte für die Anzahl der Artifact Registry-Anfragen im Metrics Explorer darstellen und das Diagramm anhand verschiedener Parameter wie Leseanfragen, Schreibanfragen, Methode und Repository-ID bearbeiten können.
Erforderliche Rollen
Bitten Sie Ihren Administrator, Ihnen die IAM-Rolle Monitoring Viewer (roles/monitoring.viewer) für das Google Cloud Projekt zuzuweisen, um die Berechtigungen zu erhalten, die Sie zum Aufrufen von Monitoring-Daten und Konfigurationsinformationen benötigen.
Weitere Informationen zum Zuweisen von Rollen finden Sie unter Zugriff auf Projekte, Ordner und Organisationen verwalten.
Weitere Informationen zum Steuern des Zugriffs auf Monitoring-Daten finden Sie unter Zugriff mit IAM steuern.
Anzahl der Chart API-Anfragen pro Repository
Wenn Sie den Metrics Explorer verwenden, können Sie die darzustellenden Daten auswählen, indem Sie in den Menüs Optionen auswählen oder eine PromQL-Abfrage eingeben. Weitere Informationen zum Erstellen von Diagrammen finden Sie unter Diagramm mit dem Metrics Explorer erstellen.
So rufen Sie mit dem Metrics Explorer die Messwerte für eine überwachte Ressource auf:
Rufen Sie in der Google Cloud Console die Seite leaderboardMetrics Explorer auf:
Wenn Sie diese Seite über die Suchleiste suchen, wählen Sie das Ergebnis aus, dessen Zwischenüberschrift Monitoring ist.
Wählen Sie in der Symbolleiste der Google Cloud Console Ihr Google Cloud -Projekt aus.
Wählen Sie für App Hub-Konfigurationen das App Hub-Hostprojekt oder das Verwaltungsprojekt des für Apps aktivierten Ordners aus.
Maximieren Sie im Element Messwert das Menü Messwert auswählen, geben Sie Artifact Registry in die Filterleiste ein und wählen Sie dann über die Untermenüs einen bestimmten Ressourcentyp und Messwert aus:
Wählen Sie im Menü Aktive Ressourcen die Option Artifact Registry-Repository aus.
Wählen Sie im Menü Aktive Messwertkategorien die Option Repository aus.
Wählen Sie im Menü Aktive Messwerte die Option Anzahl der Data Plane API-Anfragen pro Repository aus.
Data-Plane-API-Anfragen werden von Tools wie Docker, Maven, Pip, Twine oder Gradle-Tools gestellt, die Anfragen an die Data-Plane-API senden. Alle Methoden, mit denen Anfragen an die Data Plane API erstellt werden, finden Sie unter Data Plane API.
Wenn Sie API-Anfragen der Steuerungsebene ansehen möchten, die von Methoden in google.devtools.artifactregistry.v1.ArtifactRegistry gestellt wurden, wählen Sie Anzahl der API-Anfragen der Steuerungsebene pro Repository aus.
Klicken Sie auf Übernehmen.
Der voll qualifizierte Name für diesen Messwert ist artifactregistry.googleapis.com/repository/request_count.
Verwenden Sie das Element Filter, um Filter hinzuzufügen, mit denen Zeitreihen aus den Abfrageergebnissen entfernt werden.
Konfigurieren Sie, wie die Daten angezeigt werden. Wenn nur eine Teilmenge der Daten angezeigt werden soll, wählen Sie im Element Filter die Option Filter hinzufügen aus und füllen Sie das Dialogfeld aus.
Sie können sich beispielsweise Daten zu folgenden Aspekten ansehen:
Leseanfragen: Wenden Sie einen Filter für das Messwertlabeltype mit dem Wert READ an.
Schreibanfragen: Wenden Sie einen Filter für das Messwertlabeltype mit dem Wert WRITE an.
Methode: Wenden Sie einen Filter für das Messwertlabelmethod mit einem Wert aus den in der Data Plane API aufgeführten Methoden an. Wenden Sie beispielsweise einen Filter method mit dem Wert von Docker-DeleteBlob an, um nach dem Löschen von Bildebenen zu filtern.
Repository-ID: Wenden Sie einen Filter für das Messwertlabelrepository_id gleich der Repository-ID an. Beispiel: my-repo.
Sie können mehrere Filter hinzufügen. Weitere Informationen zum Filtern von Daten finden Sie unter Diagrammdaten filtern und in der Liste der Google Cloud Messwerte in den Labelbeschreibungen für Artifact Registry-Messwerte.
Hier finden Sie Methoden der Datenebene und Steuerungsebene von Artifact Registry, die Sie als Filter in Audit-Logs für die API-Schnittstelle verwenden können.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eThis guide explains how to chart Artifact Registry request count metrics using the Metrics Explorer in Google Cloud.\u003c/p\u003e\n"],["\u003cp\u003eYou can view data plane and control plane API requests, which are made by methods listed in the audit logs.\u003c/p\u003e\n"],["\u003cp\u003eTo view monitoring data, you need the Monitoring Viewer IAM role or equivalent permissions.\u003c/p\u003e\n"],["\u003cp\u003eYou can filter the charted data to view specific types of requests such as read, write, a specific method, or by a particular repository ID.\u003c/p\u003e\n"],["\u003cp\u003eThe fully qualified name for the metric being discussed is \u003ccode\u003eartifactregistry.googleapis.com/repository/request_count\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Chart request counts per repository in the Metrics Explorer\n\nThis page describes how you can chart Artifact Registry request count metrics in\nthe Metrics Explorer, and manipulate the chart by different parameters such\nas read requests, write requests, method and repository ID.\n\nRequired roles\n--------------\n\n\nTo get the permissions that\nyou need to view monitoring data and configuration information,\n\nask your administrator to grant you the\n\n\n[Monitoring Viewer](/iam/docs/roles-permissions/monitoring#monitoring.viewer) (`roles/monitoring.viewer`)\nIAM role on the Google Cloud project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nYou might also be able to get\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n\nFor more information about controlling access to monitoring data, read\n[Control access with IAM](/monitoring/access-control#grant_access_to_monitoring-gcloud).\n\nChart API request counts per repository\n---------------------------------------\n\nWhen using Metrics Explorer, you can select the data to chart by making\nselections in the menus or by entering a PromQL query. For more information\nabout creating charts, see\n[Create a chart in the Metrics Explorer](/monitoring/charts/metrics-explorer).\n\nTo view the metrics for a monitored resource by using the\nMetrics Explorer, do the following:\n\n1. In the Google Cloud console, go to the\n *leaderboard* **Metrics explorer** page:\n\n [Go to **Metrics explorer**](https://console.cloud.google.com/monitoring/metrics-explorer)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n2. In the toolbar of the Google Cloud console, select your Google Cloud project. For [App Hub](/app-hub/docs/overview) configurations, select the App Hub host project or the app-enabled folder's management project.\n3. In the **Metric** element, expand the **Select a metric** menu, enter `Artifact Registry` in the filter bar, and then use the submenus to select a specific resource type and metric:\n 1. In the **Active resources** menu, select **Artifact Registry Repository**.\n 2. In the **Active metric categories** menu, select **Repository**.\n 3. In the **Active metrics** menu, select **Data plane API request count per repository** . Data plane API requests are made by tools like Docker, Maven, Pip, Twine, or Gradle tools that make requests to the data-plane API. You can view all methods that create requests to the data-plane API in [Data plane API](/artifact-registry/docs/audit-logging#Data%20plane%20API).\n\n \u003cbr /\u003e\n\n If you want to view control plane API requests made by methods listed in\n [`google.devtools.artifactregistry.v1.ArtifactRegistry`](/artifact-registry/docs/audit-logging#google.devtools.artifactregistry.v1.ArtifactRegistry),\n then select **Control plane API request count per repository**.\n\n\n 4. Click **Apply**.\n\n The fully qualified name for this metric is `artifactregistry.googleapis.com/repository/request_count`.\n4. Configure how the data is viewed. To specify a subset of data to display, in the **Filter** element, select **Add filter** , and then complete the dialog.\n\n \u003cbr /\u003e\n\n For example, you can view data for the following:\n - Read requests: apply a filter for the **Metric label** `type` equal to the value `READ`.\n - Write requests: apply a filter for the **Metric label** `type` equal to the value `WRITE`.\n - Method: apply a filter for the **Metric label** `method` with a value from the methods listed in the [Data plane API](/artifact-registry/docs/audit-logging#Data%20plane%20API). For example, apply a filter `method` equal to the value of `Docker-DeleteBlob` to filter for image layer deletion.\n - Repository ID: apply a filter for the **Metric label** `repository_id` equal to the repository ID. For example `my-repo`.\n\n For more information about configuring a chart, see\n [Select metrics when using Metrics Explorer.](/monitoring/charts/metrics-selector)\n\nYou can add multiple filters. For more information on filtering data, see\n[Filter charted data](/monitoring/charts/metrics-selector#filter-option) and\nthe labels descriptions for Artifact Registry metrics in the list of\n[Google Cloud Metrics](https://cloud.google.com/monitoring/api/metrics_gcp_a_b#gcp-artifactregistry).\n\nFor more information on selecting data, see\n[Select the data to chart](/monitoring/charts/metrics-selector).\n\nWhat's next\n-----------\n\n- Learn how to [save a chart for future reference](/monitoring/charts/metrics-explorer#save).\n- View Artifact Registry data-plane and control-plane methods that you can use as filters in [API interface audit logs](/artifact-registry/docs/audit-logging#api-interface-reference).\n- [Explore charted data](/monitoring/charts/working-with-charts)."]]