Stay organized with collections
Save and categorize content based on your preferences.
Aggregation
When you read metric data using the Metrics Explorer or the Monitoring API,
you can use aggregation to summarize the time series data. Aggregation
typically starts with an alignment step in which each time series' data is
placed on the same time boundaries. Next, a new time series is created by
combining the data points from multiple time series, using operations like
average, sum, minimum, maximum, and so forth.
Cloud Monitoring has a large number of built-in system metrics, but you can
also create custom metrics. You must create a metric descriptor that
describes your custom metric and one or more time series that contain its data.
You can use your custom metric data in charts and alerts. You can also create
custom metrics based on logs data. For more information, see the following
pages:
Monitoring API, is the API used to for
custom metrics. See the projects.metricDescriptors and
projects.timeSeries collections.
Filtering
Cloud Logging and Cloud Monitoring provide different kinds of filters
that let you select
sets of items. Filters are strings that contain combinations of comparisons
appropriate to their kind. For example:
Logging filters let
you select particular log entries based on log names, where the logs
came from, their payload content, and so on.
Monitoring filters let you
select particular metric descriptors, resource groups, and time series data.
Trace filters let you select
traces based on span names, latency, and label values.
Metrics scope
Monitoring organizes itself around metrics scopes that
let you view and monitor metrics for one or more Google Cloud projects.
For more information about metrics scopes, see
Configuring your Google Cloud project for Cloud Monitoring.
[[["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,["# Learn more about...\n\n| **Beta**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nAggregation\n-----------\n\nWhen you read metric data using the Metrics Explorer or the Monitoring API,\nyou can use *aggregation* to summarize the time series data. Aggregation\ntypically starts with an alignment step in which each time series' data is\nplaced on the same time boundaries. Next, a new time series is created by\ncombining the data points from multiple time series, using operations like\naverage, sum, minimum, maximum, and so forth.\n\nFor more information about aggregation, see the\n[`projects.timeSeries.list`](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)\nAPI method.\n\nCustom metrics\n--------------\n\nCloud Monitoring has a large number of built-in system metrics, but you can\nalso create custom metrics. You must create a metric descriptor that\ndescribes your custom metric and one or more time series that contain its data.\nYou can use your custom metric data in charts and alerts. You can also create\ncustom metrics based on logs data. For more information, see the following\npages:\n\n- [Metrics, Time Series, and Resources](/monitoring/api/v3/metrics) provides an overview.\n- [Using Custom Metrics](/monitoring/custom-metrics) shows you how to create, write, and read custom metrics.\n- [Logs-based Metrics](/logging/docs/view/logs_based_metrics) describes how to create custom metrics from logs.\n- [Monitoring API](/monitoring/api/ref_v3/rest), is the API used to for custom metrics. See the `projects.metricDescriptors` and `projects.timeSeries` collections.\n\nFiltering\n---------\n\nCloud Logging and Cloud Monitoring provide different kinds of filters\nthat let you select\nsets of items. Filters are strings that contain combinations of comparisons\nappropriate to their kind. For example:\n\n- [Logging filters](/logging/docs/view/advanced_filters) let you select particular log entries based on log names, where the logs came from, their payload content, and so on.\n- [Monitoring filters](/monitoring/api/v3/filters) let you select particular metric descriptors, resource groups, and time series data.\n- [Trace filters](/trace/docs/trace-filters) let you select traces based on span names, latency, and label values.\n\nMetrics scope\n-------------\n\nMonitoring organizes itself around metrics scopes that\nlet you view and monitor metrics for one or more Google Cloud projects.\nFor more information about metrics scopes, see\n[Configuring your Google Cloud project for Cloud Monitoring](/monitoring/settings)."]]