Cloud Monitoring을 사용하여 할당량 사용 알림 및 모니터링을 설정할 수 있습니다. 이 페이지에서는 알림을 설정하고, 차트를 만들고, Cloud 할당량에 Cloud Monitoring을 사용하는 방법에 관한 자세한 정보를 확인하는 방법을 설명합니다.
기본 할당량 사용량 알림 설정
Cloud 할당량 대시보드는 Cloud Monitoring과 통합됩니다. 할당량 및 시스템 한도 페이지에서 할당량 알림을 설정하여 할당량 이벤트 알림을 받을 수 있습니다. 예를 들어 할당량 사용량이 최대값의 일정 비율에 도달하면 알림을 받도록 설정할 수 있습니다. 이 기능은 프로젝트 수준의 할당량에서만 지원됩니다.
시계열을 조합하려면 집계 요소의 메뉴를 사용합니다.
예를 들어 VM의 CPU 사용률을 영역에 따라 표시하려면 첫 번째 메뉴를 평균으로, 두 번째 메뉴를 영역으로 설정합니다.
집계 요소의 첫 번째 메뉴가 집계되지 않음으로 설정되면 모든 시계열이 표시됩니다. 집계 요소 기본 설정은 선택한 측정항목 유형에 따라 결정됩니다.
하루에 샘플 하나를 보고하는 할당량과 기타 측정항목의 경우 다음을 수행합니다.
표시 창에서 위젯 유형을 누적 막대 그래프로 설정합니다.
기간을 최소 1주일로 설정합니다.
원하는 할당량 사용량 정보를 찾았다면 Cloud Monitoring을 사용하여 커스텀 대시보드와 알림을 만들 수 있습니다. 자세한 내용은 Cloud Monitoring으로 더 많은 작업 수행 섹션을 참조하세요.
Cloud Monitoring으로 더 많은 작업 수행
Cloud Monitoring 도구를 사용하면 할당량 사용, 값, 오류를 자세히 모니터링할 수 있습니다. 이러한 측정항목을 사용하여 커스텀 대시보드와 알림을 만들 수 있습니다. 예를 들어 시간 경과에 따른 할당량 사용량을 확인하거나 할당량 값에 도달할 때 알림을 받을 수 있습니다.
Cloud Monitoring은 다양한 측정항목을 지원하므로 필터 및 집계를 조합하여 할당량 사용에 대한 새롭고 유용한 정보를 얻을 수 있습니다. 예를 들어 배정 할당량 사용 측정항목과 Cloud TPU 이름의 quota_metric 필터를 조합하여 사용할 수 있습니다.
Cloud Monitoring 문서에서 모든 기능을 확인할 수 있습니다. 문서 세트가 방대하므로 시작하는 데 도움이 되는 몇 가지 페이지를 소개합니다.
차트 작성: 차트 및 테이블을 만들고 커스텀 대시보드에 추가하는 방법을 종합적으로 안내하는 가이드입니다.
알림 소개: 알림이 작동하는 방식과 알림 정책을 만들 때 사용할 수 있는 옵션을 간략히 설명합니다.
알림 정책 관리: 기존 알림 정책의 다양한 관리 작업에 관한 가이드입니다(예: 정책 보기, 정책 수정, 정책 삭제, 대시보드에 정책 추가).
할당량 측정항목 사용: 할당량 사용 사례에 관한 자세한 페이지로, quota/exceeded 오류에 대한 알림을 만드는 방법과 같은 주제를 다루는 예시가 포함되어 있습니다.
Google Cloud 측정항목 가이드: 측정항목 참조 페이지입니다. serviceruntime 섹션에는 모니터링에 사용되는 할당량 측정항목이 나열됩니다.
할당량 측정항목 지원 확인
일부 서비스는 Cloud Monitoring에서 할당량 측정항목을 지원하지 않습니다. 지원되는 서비스에 적용 가능한 할당량 측정항목을 확인하려면 차트를 작성하거나 알림 정책을 만들 때 소비자 할당량을 리소스 유형으로 선택합니다. 할당량 측정항목을 지원하지 않는 서비스는 표시되지 않습니다.
할당량 측정항목을 지원하는 일반적인 서비스로는 Compute Engine, Dataflow, Spanner, Pub/Sub, Cloud Vision, Speech-to-Text, Cloud Monitoring, Cloud Logging 등이 있습니다.
할당량 측정항목을 지원하지 않는 일반적인 서비스로는 App Engine, Cloud SQL 등이 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-18(UTC)"],[[["\u003cp\u003eYou can use Cloud Monitoring to set up alerts for quota usage, such as receiving notifications when usage reaches a specific percentage of the maximum value.\u003c/p\u003e\n"],["\u003cp\u003eThe Cloud Quotas dashboard allows creating usage alerts directly from the \u003cstrong\u003eQuotas & System Limits\u003c/strong\u003e page, where you can also configure the notification channel for these alerts.\u003c/p\u003e\n"],["\u003cp\u003eThe Metrics Explorer in Cloud Monitoring enables the creation of charts to visualize Cloud Quota metrics, such as selecting "Consumer Quota" as the resource and choosing specific quota metrics.\u003c/p\u003e\n"],["\u003cp\u003eCloud Monitoring offers advanced tools to monitor quota usage and create custom dashboards, such as combining metrics with filters and aggregations to gain deeper insights.\u003c/p\u003e\n"],["\u003cp\u003eQuota metric support varies by service; you can verify whether a service supports these metrics by checking if "Consumer Quota" is an available option when creating a chart or alert policy.\u003c/p\u003e\n"]]],[],null,["# Set up quota alerts and monitoring\n\nYou can set up quota usage alerts and monitoring by using\n[Cloud Monitoring](/cloud-monitoring). This document describes how to set up\nalerts, create charts, and find more information about using Cloud Monitoring\nfor Cloud Quotas.\n\nSet up basic quota usage alerts\n-------------------------------\n\nThe Cloud Quotas dashboard is integrated with\n[Cloud Monitoring](/monitoring/docs/monitoring-overview). You\ncan set up quota alerts from the\n**IAM \\& Admin \\\u003e Quotas \\& System Limits** page to get\nnotifications of quota events. For example, you can set up an alert to notify\nyou when your quota usage reaches a percentage of the maximum value. This\nfeature is only supported for project-level quotas.\n\nTo set up an alert for a specific quota or system limit, do the following:\n\n1. Make sure that you have\n [permissions to create alerts](/docs/quotas/permissions#permissions_create_alert)\n\n2. In the Google Cloud console, go to the\n **IAM \\& Admin \\\u003e Quotas \\& System Limits** page:\n\n\n [Go to Quotas \\& System Limits](https://console.cloud.google.com/iam-admin/quotas)\n\n \u003cbr /\u003e\n\n3. In the right-most column of the table, click more_vert **More\n actions** , and then select **Create usage alert** . The **Alert policy\n templates** pane opens.\n\n4. Under **Configure notifications**, select your notification channel. The\n notification channel is how you receive the alert---for example email,\n SMS, or Pub/Sub.\n\n5. Click **Create**.\n\nCreate charts\n-------------\n\nThe Cloud Monitoring metrics explorer lets you create charts to view metrics.\nYou can use it to view metrics related to Cloud Quotas.\n\n\u003cbr /\u003e\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 `quota usage` 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 **Consumer Quota**.\n 2. In the **Active metric categories** menu, select **Quota**.\n 3. In the **Active metrics** menu, select a metric from the list. To display both active and inactive metrics, click **Active** to clear the filter in the **Select a metric** menu.\n 4. Click **Apply**.\n4. To remove time series from the display, use the\n [**Filter** element](/monitoring/charts/metrics-selector#filter-option).\n\n5. To combine time series, use the menus on the\n [**Aggregation** element](/monitoring/charts/metrics-selector#select_display).\n For example, to display the CPU utilization for your VMs, based on their zone, set the\n first menu to **Mean** and the second menu to **zone**.\n\n All time series are displayed when the first menu of the **Aggregation** element is set\n to **Unaggregated** . The default settings for the **Aggregation** element\n are determined by the metric type you selected.\n6. For quota and other metrics that report one sample per day, do the following:\n 1. In the **Display** pane, set the **Widget type** to **Stacked bar chart**.\n 2. Set the time period to at least one week.\n\n| **Note:** Quota values are updated once per day. Changes to values can take up to 24 hours to be updated in the Google Cloud console.\n\nAfter you've found the quota usage information you want, you can use\nCloud Monitoring to create custom dashboards and alerts. For more\ninformation, see [Do more with Cloud Monitoring](#do-more).\n\nCheck quota metric support\n--------------------------\n\nNot all services support quota metrics in Cloud Monitoring. To see\napplicable quota metrics for supported services, select **Consumer Quota** as\nthe resource type when building a chart or creating an alerting policy. Services\nthat don't support quota metrics aren't displayed.\n\n- Common services that support quota metrics include Compute Engine,\n Dataflow, Spanner, Pub/Sub, Cloud Vision,\n Speech-to-Text, Cloud Monitoring, and Cloud Logging.\n\n- Common services that don't support quota metrics include App Engine and\n Cloud SQL.\n\nGet metric names\n----------------\n\nQuotas and system limits have two types of names: display names and metric\nnames. Display names have spaces and capitalization that make them easier for\nhumans to read. Metric names are more likely to be lowercase and delimited by\nunderscores instead of spaces; the exact format depends on the service.\n\nThe following instructions show how to get quota and system limit metric names\nusing either the Google Cloud console or gcloud CLI. \n\n### Console\n\n1. In the Google Cloud console, go to the\n **IAM \\& Admin \\\u003e Quotas \\& System Limits** page:\n\n\n [Go to Quotas \\& System Limits](https://console.cloud.google.com/iam-admin/quotas)\n\n \u003cbr /\u003e\n\n The table on this page displays quotas and system limits that have usage or\n have adjusted values, and a reference entry for other quotas. The reference\n entry has the word \"default\" in parentheses at the end of the listing in\n the **Name** column. For\n example, `SetIAMPolicy requests per minute per region (default)` is the\n reference entry for the quota\n `SetIamPolicyRequestsPerMinutePerProject`.\n2. If you don't see the **Metric** column, take the following steps.\n\n 1. Click view_column **Column display options**.\n 2. Select **Metric**.\n 3. Click **OK** . The **Metric** column appears in the table.\n\nThe **Metric** column shows the metric names. To filter the results, enter a\nproperty name or value in the field next to\nfilter_list **Filter**.\n\n### gcloud\n\nTo get the metric names for a Google Cloud service by\nusing the gcloud CLI, run the `quotas info list`\ncommand. To skip lines that don't list metric names, pass the output to a\ncommand such as `grep` with `metric:` as the search term, or use the\ngcloud CLI\n[`--format`](/sdk/gcloud/reference#--format) flag: \n\n gcloud beta quotas info list --project=\u003cvar translate=\"no\"\u003ePROJECT_ID_OR_NUMBER\u003c/var\u003e \\\n --service=\u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e --format=\"value(metric)\"\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID_OR_NUMBER\u003c/var\u003e: the project ID or project number.\n- \u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e: the name of the service whose quota metrics you want to see---for example, the service name for Compute Engine is `compute.googleapis.com`. Include the `googleapis.com` portion of the service name.\n\nDo more with Cloud Monitoring\n-----------------------------\n\nThe [Cloud Monitoring](/cloud-monitoring) tools let you monitor quota usage,\nvalues, and errors in depth. You can use these metrics to create custom\ndashboards and alerts. For example, you can view quota usage over time or\nreceive an alert when you're approaching your quota value.\n\nCloud Monitoring supports a wide variety of metrics that you can combine\nwith filters and aggregations for new and insightful views into your quota\nusage. For example, you can combine a metric for allocation quota usage with a\n`quota_metric` filter on Cloud TPU names.\n\nPricing for Cloud Monitoring is described in the\n[Google Cloud Observability pricing](https://cloud.google.com/stackdriver/pricing)\ndocument.\n\nThe [Cloud Monitoring documentation](/monitoring/docs/monitoring-overview)\nis extensive, so here are a few documents to get you started:\n\n- [Building charts](/monitoring/charts): A comprehensive guide to creating charts and tables, and adding them to a custom dashboard.\n- [Introduction to alerting](/monitoring/alerts): An overview covering how alerting works and what your options are for creating an alert policy.\n- [Managing alerting policies](/monitoring/alerts/manage-alerts): A guide to various management tasks for your existing alerting policies---for example, view a policy, edit a policy, delete a policy, or add a policy to a dashboard.\n- [Using quota metrics](/monitoring/alerts/using-quota-metrics): A detailed document dedicated to quotas use cases, with examples covering topics such as how to create alerts for `quota/exceeded` errors.\n- [Google Cloud metrics guide](/monitoring/api/metrics_gcp_p_z#gcp-serviceruntime): A metrics reference document. The `serviceruntime` section lists the quotas metrics used for monitoring."]]