Stay organized with collections
Save and categorize content based on your preferences.
This document describes how Cloud Monitoring models the measurements it
collects, those measurements help you understand how your
applications and system services are performing. Cloud Monitoring's model
for monitoring data consists of three primary
concepts—monitored-resource types, metric types, time series:
Monitored-resource types are the sources of the measurements, like your
applications and system services.
There are more than 270 types of monitored
resources available.
For the current list, see Monitored resource list.
Metric types define the property that is being measured, like
CPU utilization.
There are more than 6,500 types of metrics available in
Monitoring, for monitoring Google Cloud, AWS, and a variety
of third-party software.
For lists of metric types, see Metrics list.
And if you need something that isn't already defined, you can create your own.
A time series is a collection of measurements from a specific
monitored resource.
For an introduction to these concepts and how they are related,
read this document. The following documents provide more in-depth
information:
For information about labels and time series cardinality, and for examples
of monitored resources and metric types, see
Components of the metric model.
For detailed
information about time series, including how they are represented
by the Cloud Monitoring API, see Structure of time series.
This information is particularly relevant to you if you plan to use
the Monitoring API or custom metrics.
The Cloud Monitoring metric model
A metric is a set of related measurements of some attribute of a resource
you are monitoring. Measurements might include the latency of requests to a
service, the amount of disk space available on a machine, the number of tables
in your SQL database, the number of widgets sold, and so forth. Resources might
include virtual machines (VMs), database instances, disks, and so forth.
The general notion of a metric in Cloud Monitoring
encompasses three primary components:
Information about the source of the measurements.
A set of measurements of some property. Each measurement is recorded as
a time-stamped value.
Information about the values of the property being measured.
For example, suppose there is a metric that tracks the number of widgets sold
by a store. The components of the model map to this example in the following
ways:
Source of the measurements
The metric model records information about each resource being monitored.
The particular information captured depends on the type of resource
being monitored: it might include geographical locations, method
names, disk IDs, and so forth, anything that might be the source of
measurements.
The source of monitoring data is called a monitored resource.
Example: In the widget-sales example, the monitored resources are the
stores selling the widgets.
Measurements
The metric model captures measurements of a property as a set of
data points, consisting of time-stamped values.
Values are typically numeric, but it depends on what you're measuring.
Example: In the widget-sales example, the measurements record sales
information at points in time. Such measurements might look like the
following:
The measurement values are meaningless without information about how to
interpret them. You need to have some “type” information
about the values, like data type, unit, and kind of each measurement:
Is the value an integer or a string?
Does the value represent miles per hour or radians?
Does the value represent the total at the time, or the change since the
previous value?
Cloud Monitoring calls each set of characteristics about something
you want to measure a metric type.
Example: In the widget-sales example, this information might tell you
the following:
Each value is recorded as a 64-bit integer.
Each value represents a count of widgets sold.
Each value represents the number of widgets sold since the last
recorded measurement.
Time series: putting the components together
In Cloud Monitoring, the data structure that underlies this model is
the time series (the singular and the plural forms are the same).
Each time series encompasses the three components of the model:
A description of the monitored resource from which the measurements
originated.
The set of measurements associated with a single monitored resource.
A description of the metric type that describes what you are measuring.
Example: In the widget-sales example, a time series includes the following:
A description of the store that sold the widgets counted in this time
series.
The set of measurements recorded for this store.
A description of the values: 64-bit integers measuring the number
of widgets sold since the previous recorded value.
A single Cloud Monitoring metric type or monitored-resource type
can be associated with many related time series.
In the widget-sales example, each store that sells
widgets stores its data in a time series, so if there are 15 stores
selling widgets, there can be 15 time series recording widget sales.
What's next
For more information on the structure of Cloud Monitoring metrics, see
[[["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-08-25 UTC."],[],[],null,["# Metrics, time series, and resources\n\nThis document describes how Cloud Monitoring models the measurements it\ncollects, those measurements help you understand how your\napplications and system services are performing. Cloud Monitoring's model\nfor monitoring data consists of three primary\nconcepts---monitored-resource types, metric types, time series:\n\n- *Monitored-resource types* are the sources of the measurements, like your\n applications and system services.\n\n There are more than 270 types of monitored\n resources available.\n\n For the current list, see [Monitored resource list](/monitoring/api/resources).\n\n- *Metric types* define the property that is being measured, like\n CPU utilization.\n\n There are more than 6,500 types of metrics available in\n Monitoring, for monitoring Google Cloud, AWS, and a variety\n of third-party software.\n\n For lists of metric types, see [Metrics list](/monitoring/api/metrics).\n\n And if you need something that isn't already defined, you can create your own.\n\n- A *time series* is a collection of measurements from a specific\n monitored resource.\n\nFor an introduction to these concepts and how they are related,\nread this document. The following documents provide more in-depth\ninformation:\n\n- For information about labels and time series cardinality, and for examples of monitored resources and metric types, see [Components of the metric model](/monitoring/api/v3/metric-model).\n- For detailed information about time series, including how they are represented by the Cloud Monitoring API, see [Structure of time series](/monitoring/api/v3/metrics-details). This information is particularly relevant to you if you plan to use the Monitoring API or custom metrics.\n\nThe Cloud Monitoring metric model\n---------------------------------\n\nA *metric* is a set of related measurements of some attribute of a resource\nyou are monitoring. Measurements might include the latency of requests to a\nservice, the amount of disk space available on a machine, the number of tables\nin your SQL database, the number of widgets sold, and so forth. Resources might\ninclude virtual machines (VMs), database instances, disks, and so forth.\n\nThe general notion of a *metric* in Cloud Monitoring\nencompasses three primary components:\n\n- Information about the source of the measurements.\n- A set of measurements of some property. Each measurement is recorded as a time-stamped value.\n- Information about the values of the property being measured.\n\nFor example, suppose there is a metric that tracks the number of widgets sold\nby a store. The components of the model map to this example in the following\nways:\n\n- **Source of the measurements**\n\n The metric model records information about each resource being monitored.\n The particular information captured depends on the type of resource\n being monitored: it might include geographical locations, method\n names, disk IDs, and so forth, anything that might be the source of\n measurements.\n\n The source of monitoring data is called a *monitored resource*.\n\n **Example:** In the widget-sales example, the monitored resources are the\n stores selling the widgets.\n- **Measurements**\n\n The metric model captures measurements of a property as a set of\n data points, consisting of time-stamped values.\n\n Values are typically numeric, but it depends on what you're measuring.\n\n **Example:** In the widget-sales example, the measurements record sales\n information at points in time. Such measurements might look like the\n following: \n\n ```\n [(150, 2024-05-23T17:37:00-04:00),\n (229, 2024-05-23T17:38:00-04:00),\n (138, 2024-05-23T17:39:00-04:00),\n ...]\n ```\n- **Information about the values**\n\n The measurement values are meaningless without information about how to\n interpret them. You need to have some \"type\" information\n about the values, like data type, unit, and kind of each measurement:\n - Is the value an integer or a string?\n - Does the value represent miles per hour or radians?\n - Does the value represent the total at the time, or the change since the previous value?\n\n Cloud Monitoring calls each set of characteristics about something\n you want to measure a *metric type*.\n\n **Example:** In the widget-sales example, this information might tell you\n the following:\n - Each value is recorded as a 64-bit integer.\n - Each value represents a count of widgets sold.\n - Each value represents the number of widgets sold since the last recorded measurement.\n\nTime series: putting the components together\n--------------------------------------------\n\nIn Cloud Monitoring, the data structure that underlies this model is\nthe *time series* (the singular and the plural forms are the same).\n\nEach time series encompasses the three components of the model:\n\n- A description of the monitored resource from which the measurements originated.\n- The set of measurements associated with a single monitored resource.\n- A description of the metric type that describes what you are measuring.\n\n**Example:** In the widget-sales example, a time series includes the following:\n\n- A description of the store that sold the widgets counted in this time series.\n- The set of measurements recorded for this store.\n- A description of the values: 64-bit integers measuring the number of widgets sold since the previous recorded value.\n\nA single Cloud Monitoring metric type or monitored-resource type\ncan be associated with many related time series.\nIn the widget-sales example, each store that sells\nwidgets stores its data in a time series, so if there are 15 stores\nselling widgets, there can be 15 time series recording widget sales.\n\nWhat's next\n-----------\n\n- For more information on the structure of Cloud Monitoring metrics, see\n - [Components of the metric model](/monitoring/api/v3/metric-model) for a deeper look at metrics, resources, and time series.\n - [Structure of time series](/monitoring/api/v3/metrics-details) for information about how time series map to the Cloud Monitoring API.\n- For information on time-series operations like aggregation, grouping, and filtering, see [Filtering and aggregation: manipulating time\n series](/monitoring/api/v3/aggregation).\n- For help with terminology, see [Notes on terminology](/monitoring/api/v3/terminology)."]]