Cloud Monitoring supports read-time aggregation of stored metric data, which lets you view and monitor data that originates in multiple projects. To aggregate metric data at read time, configure the metrics scope.
Metric storage and views
Cloud Monitoring always stores metric data in the project where it originates. Views aren't supported.
Configure read-time aggregation using metrics scopes
A project's metrics scope identifies the metric data that the project can read. For example, when you create a chart in your project, the chart's query is applied to every project listed in the metrics scope. The chart then aggregates the returned data and displays it. Similarly, if you create an alerting policy, the queries in the alerting policy are sent to every project listed in the metrics scope.
If your hierarchy contains management projects, then use them to view metric data; otherwise, use standard projects. Configuration differs by project type:
- For standard projects, you must configure the metrics scope.
- For management projects, the system automatically synchronizes the metrics scope with member projects. If the number of member projects exceeds 375, you can request a quota increase.
For more information about boundaries and how metrics scopes are managed, see Cross-project boundaries and Metrics scopes for management projects.
Roles required to view metric data
The Monitoring Viewer (roles/monitoring.viewer) role
includes all permissions necessary to use the Metrics Explorer page
and to view metric data available to the project where this role is granted.
Grant principals the Monitoring Viewer role on the project where they view metric data. If you're using management projects, then grant this role on those projects.