이 페이지의 일부 또는 모든 정보는 Trusted Cloud by S3NS에 적용되지 않을 수 있습니다. 자세한 내용은
Google Cloud와의 차이점을 참조하세요.
전역 측정항목에서 리전 측정항목으로 API 할당량 마이그레이션
이 문서에서는 리전 API의 할당량 측정항목과 각 측정항목의 한도를 설명합니다. 또한 리전 측정항목을 사용하도록 Cloud Monitoring 대시보드, 알림 정책, 쿼리를 업데이트하는 방법도 설명합니다.
리전 API 할당량 측정항목
전역 할당량 측정항목을 사용한 Compute Engine 리전 API가 리전 측정항목을 사용하도록 마이그레이션됩니다. 전역 API는 전역 측정항목 및 할당량 한도를 계속 사용합니다. 전역 측정항목의 API 비율 제한을 참조하세요.
리전 측정항목 및 한도에 사용되는 메서드에 대한 자세한 내용은 리전 측정항목의 API 비율 한도를 참조하세요.
다음 표에는 전역 API 할당량 측정항목에서 리전 측정항목으로 마이그레이션된 모든 측정항목이 나와 있습니다.
전역 API 할당량 측정항목 |
리전 API 할당량 측정항목 |
compute.googleapis.com/default |
compute.googleapis.com/default_per_region |
compute.googleapis.com/read_requests |
compute.googleapis.com/read_requests_per_region |
compute.googleapis.com/list_requests |
compute.googleapis.com/list_requests_per_region |
compute.googleapis.com/operation_read_requests |
compute.googleapis.com/operation_read_requests_per_region |
compute.googleapis.com/heavy_weight_read_requests |
compute.googleapis.com/heavy_weight_read_requests_per_region |
compute.googleapis.com/heavy_weight_write_requests |
compute.googleapis.com/heavy_weight_write_requests_per_region |
compute.googleapis.com/global_resource_write_requests |
compute.googleapis.com/global_resource_write_requests_per_region |
다음 측정항목에는 전역 API가 없습니다. Cloud Monitoring 대시보드, 알림 또는 쿼리에서 이러한 측정항목을 참조하는 경우 이러한 측정항목을 해당하는 리전 측정항목으로 마이그레이션해야 합니다.
전역 API 할당량 측정항목 |
리전 API 할당량 측정항목 |
compute.googleapis.com/simulate_maintenance_event_requests |
compute.googleapis.com/simulate_maintenance_event_requests_per_region |
compute.googleapis.com/instance_list_referrers_requests |
compute.googleapis.com/instance_list_referrers_requests_per_region |
compute.googleapis.com/get_serial_port_output_requests |
compute.googleapis.com/get_serial_port_output_requests_per_region |
compute.googleapis.com/network_endpoint_write_requests |
compute.googleapis.com/network_endpoint_write_requests_per_region |
compute.googleapis.com/network_endpoint_list_requests |
compute.googleapis.com/network_endpoint_list_requests_per_region |
다음 측정항목에는 리전 또는 영역 API가 없습니다. 따라서 리전 API 할당량 마이그레이션에는 변경사항이 없습니다.
compute.googleapis.com/project_set_common_instance_metadata_requests
compute.googleapis.com/license_insert_requests
Cloud Monitoring 측정항목 마이그레이션
기존 API 할당량 측정항목에서 리전 API 할당량 측정항목으로 마이그레이션할 경우 Cloud Monitoring 대시보드, 알림, 쿼리를 수동으로 업데이트하여 리전 측정항목을 사용해야 합니다.
리전 측정항목을 사용하도록 Cloud Monitoring 대시보드 업데이트
전역 API 할당량 측정항목을 모니터링하는 알림 정책을 지역 측정항목으로 변경하려면 다음 단계를 따르세요.
- Trusted Cloud 콘솔에서 Monitoring을 선택합니다.
- 탐색창에서 대시보드를 선택합니다.
- 리전 측정항목을 사용하도록 수정할 대시보드를 선택합니다.
- 대시보드 수정을 클릭합니다.
마이그레이션하려는 측정항목에 해당하는 필터를 수정합니다.
- 필터 필드에서
quota_metric
을 선택합니다.
- 비교 연산자 필드에서
=~
를 선택합니다.
값 필드에 리전 API 할당량의 측정항목 이름을 지정합니다.
예를 들어 quota_metric =~ compute.googleapis.com/read_requests.*
필터는 정규 표현식을 사용하여 할당량 측정항목 compute.googleapis.com/read_requests.*
를 사용하는 모든 시계열 데이터를 일치시킵니다.
측정항목에 대한 자세한 내용은 리전 측정항목의 API 비율 한도를 참조하세요.
완료를 클릭하여 변경사항을 저장합니다.
선택사항: 리전별 할당량 사용량을 보려면 그룹화 헤더를 확장하고 그룹화 기준 필드에서 location
을 선택합니다.
편집기 닫기를 클릭합니다.
리전 API 할당량 측정항목을 사용하도록 Cloud Monitoring 알림 정책 업데이트
전역 API 할당량 측정항목을 모니터링하는 알림 정책을 지역 측정항목으로 변경하려면 다음 단계를 따르세요.
- Trusted Cloud 콘솔에서 Monitoring을 선택합니다.
- 탐색 창에서 알림을 선택합니다.
알림 페이지에는 요약 정보, 이슈, 알림 정책을 나열하는 창이 표시됩니다.
- 리전 측정항목을 사용하도록 수정할 알림 정책을 클릭합니다.
- 수정을 클릭하여 정책을 수정합니다.
마이그레이션하려는 측정항목에 해당하는 필터를 수정합니다.
- 필터 필드에서
quota_metric
을 선택합니다.
- 비교 연산자 필드에서
=~
를 선택합니다.
값 필드에 리전 API 할당량의 측정항목 이름을 지정합니다.
예를 들어 quota_metric =~ compute.googleapis.com/read_requests.*
필터는 정규 표현식을 사용하여 할당량 측정항목 compute.googleapis.com/read_requests.*
를 사용하는 모든 시계열 데이터를 일치시킵니다.
측정항목에 대한 자세한 내용은 리전 측정항목의 API 비율 한도를 참조하세요.
완료를 클릭하여 필터의 변경사항을 저장합니다.
선택사항: 리전 측정항목에 대해 리전별 알림을 원하는 경우 시계열 전체 헤더를 확장하고 시계열 그룹화 기준 필드의 location
을 선택합니다.
정책 저장을 클릭합니다.
리전 할당량 측정항목을 사용하도록 Cloud Monitoring 쿼리 업데이트
MQL 기반 알림 정책의 할당량 측정항목 또는 대시보드의 차트를 변경하려면 쿼리 편집기를 사용하고 쿼리 필터를 수정합니다. 쿼리 편집기 사용을 참조하세요.
쿼리 편집기를 열고 다음 예시와 같이 쿼리 측정항목의 필터를 수정합니다.

원하는 경우 group-by
작업을 사용하여 위치를 기준으로 알림을 그룹화할 수 있습니다.

달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-30(UTC)
[[["이해하기 쉬움","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-30(UTC)"],[[["\u003cp\u003eCompute Engine regional APIs are migrating from global to regional quota metrics, while global APIs continue to use global metrics and limits.\u003c/p\u003e\n"],["\u003cp\u003eSeveral global API quota metrics are being replaced by corresponding regional metrics, requiring updates to Cloud Monitoring setups.\u003c/p\u003e\n"],["\u003cp\u003eSome metrics do not have global APIs, therefore you must migrate them to their regional counterpart.\u003c/p\u003e\n"],["\u003cp\u003eUpdating Cloud Monitoring dashboards, alerting policies, and queries to use regional metrics involves modifying filters to specify the new regional metric names, such as \u003ccode\u003ecompute.googleapis.com/read_requests_per_region\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSome metrics don't have regional or zonal APIs, so no migration is needed for them.\u003c/p\u003e\n"]]],[],null,["# Migrate API quotas from global metrics to regional metrics\n\n*** ** * ** ***\n\nThis document describes the quota metrics for regional APIs and the limit\nfor each metric. It also describes how to update your Cloud Monitoring\ndashboards, alerting policies and queries to use the regional metrics.\n\nRegional API quota metrics\n--------------------------\n\nCompute Engine regional APIs that used the global quota metrics are\nmigrated to use the regional metrics. Global APIs continue to use the global\nmetrics and quota limits. See [API rate limits for global metrics](/compute/api-quota#api-rate-limits-global).\n\nFor more information about the methods that use the regional metrics and the\nlimits, see [API rate limits for regional metrics](/compute/api-quota#api-rate-limits-regional).\n\nThe following table lists all metrics that are migrated from the global API quota\nmetrics to regional metrics:\n\nThe following metrics don't have any global APIs. If you are referencing these\nmetrics in the Cloud Monitoring dashboards, alerts, or queries, you *must*\nmigrate these metrics to the corresponding regional metrics.\n\nThe following metrics don't have any regional or zonal APIs. Therefore, no\nchanges are required for regional API quota migration.\n\n- `compute.googleapis.com/project_set_common_instance_metadata_requests`\n- `compute.googleapis.com/license_insert_requests`\n\nMigrate Cloud Monitoring metrics\n--------------------------------\n\nWhen you migrate from the existing API quota metrics to the regional API quota\nmetrics, you must manually update the Cloud Monitoring dashboards, alerts, and\nqueries to use regional metrics.\n\n### Update Cloud Monitoring dashboard to use the regional metrics\n\nTo change an alerting policy that monitors a global API quota metric to a\nregional metric, do the following:\n\n1. In the Google Cloud console, select **Monitoring**.\n2. In the navigation pane, select **Dashboards**.\n3. Select the dashboard that you want to edit to use a regional metric.\n4. Click **Edit dashboard**.\n5. Edit the filter that corresponds to the metric that you want to migrate:\n\n 1. In the **Filter** field, select `quota_metric`.\n 2. In the **Comparator** field, select `=~`.\n 3. In the **Value** field, specify the metric name for the regional API quota.\n For example, the filter `quota_metric =~ compute.googleapis.com/read_requests.*`\n uses a regular expression to match all time-series data that uses the quota\n metric `compute.googleapis.com/read_requests.*`.\n\n For more information about the metrics, See [API rate limits for regional metrics](/compute/api-quota#api-rate-limits-regional).\n 4. Click **Done** to save changes.\n\n 5. Optional: If you want to view the usage of quota per region,\n expand the **Grouped** header and select `location` in the\n **Group by** field.\n\n6. Click **Close editor**.\n\n### Update Cloud Monitoring alerting policies to use the regional API quota metrics\n\nTo change an alerting policy that monitors a global API quota metric to a\nregional metric, do the following:\n\n1. In the Google Cloud console, select **Monitoring**.\n2. In the navigation pane, select **Alerting**. The Alerting page displays panes that list summary information, incidents, and alerting policies.\n3. Click the alerting policy that you want to edit to use a regional metric.\n4. Click **Edit** to modify the policy.\n5. Edit the filter that corresponds to the metric that you want to migrate:\n\n 1. In the **Filter** field, select `quota_metric`.\n 2. In the **Comparator** field, select `=~`.\n 3. In the **Value** field, specify the metric name for the regional API quota.\n For example, the filter `quota_metric =~ compute.googleapis.com/read_requests.*`\n uses a regular expression to match all time-series data that uses the quota\n metric `compute.googleapis.com/read_requests.*`.\n\n For more information about the metrics, see [API rate limits for regional metrics](/compute/api-quota#api-rate-limits-regional).\n 4. Click **Done** to save changes in the filter.\n\n 5. Optional: If you want per-region alert for the regional metric,\n expand the **Across time series** header and select `location` in the\n **Time series group by** field.\n\n6. Click **Save policy**.\n\n### Update Cloud Monitoring queries to use the regional quota metrics\n\nTo change the quota metric in an MQL-based alerting policy or a chart in\na dashboard, use the Query Editor and edit the query filter. See\n[Using the Query Editor](/monitoring/mql/query-editor).\n\nOpen the Query Editor and edit the filter for query metric as shown in the following\nexample:\n\nOptionally, you can group the alert based on a location by using the `group-by`\noperation:"]]