Cloud Monitoring is a [global product](https://docs.cloud.google.com/about/locations#global-products) whose services are
available regardless of location, while the storage location of your
time-series data depends on the monitored resource and the Google Cloud service
that generates it. Understanding how Cloud Monitoring stores and processes
time-series data, routes alert notifications, and runs uptime checks helps you
plan for data residency and compliance requirements.

## Storage of time-series data

Google agents, client-side code using libraries like OpenTelemetry,
and third-party sources such as [BindPlane](https://docs.cloud.google.com/stackdriver/bindplane.md.txt)
write time series by using the Cloud Monitoring API. Google services also write
time series, but they use internal mechanisms.

To store a time series in a specific [region](https://docs.cloud.google.com/compute/docs/regions-zones.md.txt),
the monitored resource against which the time series is written must have
one of the following labels and the value of the label must be valid:

- `location`
- `zone`
- `region`

A time series is discarded when
the monitored resource against which the time series is written has one of
the previous labels and the value of the label isn't recognized or isn't
specified.

The storage location of a time series is unspecified when
the monitored resource against which the time series is written doesn't have
one of the previous labels.

To view a list of all monitored resources and their labels, see
[Monitored resource types](https://docs.cloud.google.com/monitoring/api/resources.md.txt). For those monitored resources that
contain a location label, the entry indicates the valid values for that label.

The [resource locations constraint](https://docs.cloud.google.com/resource-manager/docs/organization-policy/defining-locations)
doesn't apply to time series.

### Data written by Google Cloud products

Google Cloud products deployable by zone or by region
store any time series that they generate in the same region
to which they are deployed. For a list of these products, see
[Products available by location](https://docs.cloud.google.com/about/locations#products-available-by-location).

For all other Google products, the storage location of any time series
that the product generates is unspecified. For a list of these products, see
[Global products](https://docs.cloud.google.com/about/locations#global-products).

### Custom metrics

Time series for custom metrics follow the location rules described in
[Storage of time-series data](https://docs.cloud.google.com/monitoring/docs/region-support.md.txt#time-series-data). Examples of custom metrics
include metrics you create from your applications
by using libraries such as OpenCensus and OpenTelemetry.

Not all monitored resource types that are available for custom metrics
have a location label.
For example, the [`global`](https://docs.cloud.google.com/monitoring/api/resources.md.txt#tag_global) resource only has a label for
the project identifier. For a list of the monitored resource types available
for custom metrics,
see [Monitored resources for custom metrics](https://docs.cloud.google.com/monitoring/custom-metrics/creating-metrics.md.txt#custom-metric-resources).

## Processing of time-series data

The physical location where time-series data is processed when that data
is queried depends on many factors, including the storage location of the data,
query semantics, networking, and others. In general, there is no guarantee
that time series are always processed in the location where
they are physically stored.

## Alert notifications

When Monitoring sends a notification of an alert,
that information might pass through third-party providers that don't support
data localization. For example, customers can configure an alert notification
to be delivered to any email address, to a Slack channel, or through SMS.
For details on all available channel types, see
[Create and manage notification channels](https://docs.cloud.google.com/monitoring/support/notification-options.md.txt).

## Uptime checks and synthetic monitors

Customers who have set up
[Assured Workloads](https://cloud.google.com/security/products/assured-workloads) because they have
data-residency or [Impact Level 4 (IL4)](https://cloud.google.com/security/compliance/disa)
requirements shouldn't use
[uptime checks or synthetic monitors](https://docs.cloud.google.com/monitoring/uptime-checks/introduction.md.txt).