Stay organized with collectionsSave and categorize content based on your preferences.
You can create alerting policies in Cloud Monitoring
to monitor the number of Cloud Trace spans ingested per month,
your quota usage, and your rate of span ingestion. If you have never created
an alerting policy, seeManaging alerting policiesfor
detailed information about using the Cloud Monitoring console.
Monitor over-quota on Cloud Trace API usage
To create an alerting policy that triggers when your monthlyCloud Tracespans ingested
exceeds your quota, use the following settings.
If you use the search bar to find this page, then select the result whose subheading isMonitoring.
If you haven't created your notification channels and if you want to be notified, then clickEdit Notification Channelsand add your notification channels. Return to theAlertingpage after you add your channels.
From theAlertingpage, selectCreate policy.
To select the resource, metric, and filters, expand theSelect a metricmenu and
then use the values in theNew conditiontable:
Optional: To limit the menu to relevant entries, enter the resource or
metric name in the filter bar.
Select aResource type. For example, selectVM instance.
Select aMetric category. For example, selectinstance.
Select aMetric. For example, selectCPU Utilization.
SelectApply.
ClickNextand then configure the alerting policy trigger.
To complete these fields, use the values in theConfigure alert triggertable.
ClickNext.
Optional: To add notifications to your alerting policy, clickNotification channels. In the dialog, select one or more notification
channels from the menu, and then clickOK.
To be notified when incidents are openend and closed, checkNotify on incident closure. By default, notifications are sent only when
incidents are openend.
Optional: Update theIncident autoclose duration. This field determines when
Monitoring closes incidents in the absence of metric data.
Optional: ClickDocumentation, and then add any information that you
want included in a notification message.
ClickAlert nameand enter a name for the alerting policy.
ClickCreate Policy.
New condition Field
Value
Resource and Metric
In theResourcesmenu, selectConsumed API. In theMetric categoriesmenu, selectApi. In theMetricsmenu, selectRequest count.
(The metric.type isserviceruntime.googleapis.com/api/request_count).
Filter
service = cloudtrace.googleapis.com response_code = 429
Across time series Time series aggregation
sum
Rolling window
1 m
Rolling window function
sum
Configure alert trigger Field
Value
Condition type
Threshold
Alert trigger
Any time series violates
Threshold position
Above threshold
Threshold value
0
Retest window
1 minute
Monitor monthly span ingestion
To create an alerting policy that triggers when your monthlyCloud Tracespans ingested
exceeds a user-defined limit, use the following settings.
If you use the search bar to find this page, then select the result whose subheading isMonitoring.
If you haven't created your notification channels and if you want to be notified, then clickEdit Notification Channelsand add your notification channels. Return to theAlertingpage after you add your channels.
From theAlertingpage, selectCreate policy.
To select the resource, metric, and filters, expand theSelect a metricmenu and
then use the values in theNew conditiontable:
Optional: To limit the menu to relevant entries, enter the resource or
metric name in the filter bar.
Select aResource type. For example, selectVM instance.
Select aMetric category. For example, selectinstance.
Select aMetric. For example, selectCPU Utilization.
SelectApply.
ClickNextand then configure the alerting policy trigger.
To complete these fields, use the values in theConfigure alert triggertable.
ClickNext.
Optional: To add notifications to your alerting policy, clickNotification channels. In the dialog, select one or more notification
channels from the menu, and then clickOK.
To be notified when incidents are openend and closed, checkNotify on incident closure. By default, notifications are sent only when
incidents are openend.
Optional: Update theIncident autoclose duration. This field determines when
Monitoring closes incidents in the absence of metric data.
Optional: ClickDocumentation, and then add any information that you
want included in a notification message.
ClickAlert nameand enter a name for the alerting policy.
ClickCreate Policy.
New condition Field
Value
Resource and Metric
In theResourcesmenu, selectGlobal. In theMetric categoriesmenu, selectBilling. In theMetricsmenu, selectMonthly trace spans ingested.
Filter
Across time series Time series aggregation
sum
Rolling window
60 m
Rolling window function
max
Configure alert trigger Field
Value
Condition type
Threshold
Alert trigger
Any time series violates
Threshold position
Above threshold
Threshold value
You determine the acceptable value.
Retest window
Minimum acceptable value is 30 minutes.
Monitor rate of span ingestion
You can also monitor the rate at which spans are ingested. For this case,
you want to select the metric typeTrace spans ingested. The default
settings in theTransform dataandAcross time seriessections are
appropriate for this metric type.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Monitor trace quota usage and spans ingested\n\nYou can create alerting policies in Cloud Monitoring\nto monitor the number of Cloud Trace spans ingested per month,\nyour quota usage, and your rate of span ingestion. If you have never created\nan alerting policy, see [Managing alerting policies](/monitoring/alerts/using-alerting-ui) for\ndetailed information about using the Cloud Monitoring console.\n\nMonitor over-quota on Cloud Trace API usage\n-------------------------------------------\n\nTo create an alerting policy that triggers when your monthly\n[Cloud Trace](/trace/docs) spans ingested\nexceeds your quota, use the following settings.\n\n#### Steps to create an [alerting policy](/monitoring/alerts/using-alerting-ui#create-policy).\n\nTo create an alerting policy, do the following:\n\n1. In the Google Cloud console, go to the\n *notifications* **Alerting** page:\n\n [Go to **Alerting**](https://console.cloud.google.com/monitoring/alerting)\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. If you haven't created your notification channels and if you want to be notified, then click **Edit Notification Channels** and add your notification channels. Return to the **Alerting** page after you add your channels.\n3. From the **Alerting** page, select **Create policy**.\n4. To select the resource, metric, and filters, expand the **Select a metric** menu and then use the values in the **New condition** table:\n 1. Optional: To limit the menu to relevant entries, enter the resource or metric name in the filter bar.\n 2. Select a **Resource type** . For example, select **VM instance**.\n 3. Select a **Metric category** . For example, select **instance**.\n 4. Select a **Metric** . For example, select **CPU Utilization**.\n 5. Select **Apply**.\n5. Click **Next** and then configure the alerting policy trigger. To complete these fields, use the values in the **Configure alert trigger** table.\n6. Click **Next**.\n7. Optional: To add notifications to your alerting policy, click\n **Notification channels** . In the dialog, select one or more notification\n channels from the menu, and then click **OK**.\n\n To be notified when incidents are openend and closed, check\n **Notify on incident closure**. By default, notifications are sent only when\n incidents are openend.\n8. Optional: Update the **Incident autoclose duration**. This field determines when Monitoring closes incidents in the absence of metric data.\n9. Optional: Click **Documentation**, and then add any information that you want included in a notification message.\n10. Click **Alert name** and enter a name for the alerting policy.\n11. Click **Create Policy**.\n\nMonitor monthly span ingestion\n------------------------------\n\nTo create an alerting policy that triggers when your monthly\n[Cloud Trace](/trace/docs) spans ingested\nexceeds a user-defined limit, use the following settings.\n\n#### Steps to create an [alerting policy](/monitoring/alerts/using-alerting-ui#create-policy).\n\nTo create an alerting policy, do the following:\n\n1. In the Google Cloud console, go to the\n *notifications* **Alerting** page:\n\n [Go to **Alerting**](https://console.cloud.google.com/monitoring/alerting)\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. If you haven't created your notification channels and if you want to be notified, then click **Edit Notification Channels** and add your notification channels. Return to the **Alerting** page after you add your channels.\n3. From the **Alerting** page, select **Create policy**.\n4. To select the resource, metric, and filters, expand the **Select a metric** menu and then use the values in the **New condition** table:\n 1. Optional: To limit the menu to relevant entries, enter the resource or metric name in the filter bar.\n 2. Select a **Resource type** . For example, select **VM instance**.\n 3. Select a **Metric category** . For example, select **instance**.\n 4. Select a **Metric** . For example, select **CPU Utilization**.\n 5. Select **Apply**.\n5. Click **Next** and then configure the alerting policy trigger. To complete these fields, use the values in the **Configure alert trigger** table.\n6. Click **Next**.\n7. Optional: To add notifications to your alerting policy, click\n **Notification channels** . In the dialog, select one or more notification\n channels from the menu, and then click **OK**.\n\n To be notified when incidents are openend and closed, check\n **Notify on incident closure**. By default, notifications are sent only when\n incidents are openend.\n8. Optional: Update the **Incident autoclose duration**. This field determines when Monitoring closes incidents in the absence of metric data.\n9. Optional: Click **Documentation**, and then add any information that you want included in a notification message.\n10. Click **Alert name** and enter a name for the alerting policy.\n11. Click **Create Policy**.\n\nMonitor rate of span ingestion\n------------------------------\n\nYou can also monitor the rate at which spans are ingested. For this case,\nyou want to select the metric type **Trace spans ingested** . The default\nsettings in the **Transform data** and **Across time series** sections are\nappropriate for this metric type."]]