This feature isn’t available to all Chronosphere Observability Platform users and
might not be visible in your app. For information about enabling this feature in your
environment, contact Chronosphere Support.
Set up Google Cloud integration
- Request infrastructure from Chronosphere. Chronosphere Support must create infrastructure for your Google Cloud integration for use with your tenant. Before proceeding, contact Chronosphere Support.
-
Modify the Google Cloud domain restriction constraint.
If your Google Cloud organization restricts identities by
domain,
you must add the Observability Platform customer identity (
C04aozwp9) as an allowed value in your policy. -
Create a Google Cloud service account.
For each Google Cloud project, create a service account with theA Google Cloud service account isn’t an Observability Platform service account. Observability Platform requires a Google Cloud service account in the user’s Google Cloud project to provide Observability Platform access to metrics using service account impersonation.
monitoring.viewerrole. To instead grant a more restricted set of permissions, implementing the principle of least privilege, create a custom role with permissions for:monitoring.timeSeries.listmonitoring.metricDescriptors.listmonitoring.metricDescriptors.getmonitoring.monitoredResourceDescriptors.listmonitoring.monitoredResourceDescriptors.get
-
Add the Observability Platform principal to the Google Cloud service account.
Each Google Cloud service account must grant access to the Observability Platform
principal to impersonate them.
Verify with your account team to ensure you have the correct principal.
The Observability Platform principal format is similar to:
The
xyzportion of the address is dictated by your tenant provisioning. Grant the principal theiam.serviceAccountTokenCreatorrole. -
Configure the integration in Observability Platform.
Initialize the integration using the
Google Cloud integration API
by applying the configuration with Chronoctl or
Terraform.
For each Google Cloud project, supply the Google Cloud service account email
(
SERVICE-ACCOUNT@PROJECT-ID.iam.gserviceaccount.com) in the request to configure the integration, along with specific metrics to ingest using metric prefixes. See Metric Prefix Search for examples.
Example configuration
The following code provides an example for creating a single Google Cloud service account in the user’s Google Cloud project, and enables Observability Platform to impersonate and gain access.- Terraform
Use metrics scopes for projects
Chronosphere encourages users to use metrics scoping for projects in their Google Cloud environment, particularly for users that manage five or more Google Cloud projects. Chronosphere recommends creating a new metrics scoped project for use with metrics ingestion. Using a new scoped project minimizes the impact on your existing workload. Metrics scopes have benefits over configuring individual Google Cloud projects for Google Cloud integration:- Google Cloud API cost savings: With metrics scoping, Observability Platform ingests metrics using the least number of API requests to Google Cloud. Metrics scoped projects introduce a fan in/out model of ingesting metrics from the underlying Google Cloud projects that will pack time series data points for each metric into the smallest set of API responses. The Google Cloud API cost savings are significant, particularly for users managing multiple Google Cloud projects.
- Configuration simplicity: With metrics scoping, users can manage a smaller set of Google Cloud service accounts and configuration in Observability Platform. This simplifies management of the Google Cloud integration.
Set up Observability Platform to receive Google Cloud data
After configuring Google Cloud to enable Observability Platform to access metrics, you must configure Observability Platform to receive and process those metrics.View Google Cloud integrations
To list or view Google Cloud integrations, use one of the following options:- Chronoctl
- API
To list your Google Cloud integrations:To view a Google Cloud integration with Chronoctl, use the command:Replace
SLUG with the unique identifier of the Google Cloud integration.Create or update a Google Cloud integration
You can create or update your Google Cloud integration with Observability Platform by applying a configuration file with Chronoctl or Terraform. You must add your service account to an Observability Platform team with SysAdmin permissions.- Chronoctl
- Terraform
- API
To create a Google Cloud integration with Chronoctl, use the command:Replace Replace
FILENAME with the name of your Chronoctl configuration file.To update a Google Cloud integration with Chronoctl, use the command:FILENAME with the name of your Chronoctl configuration file.The input file uses the following structure:NAME: (string) The name of the Google Cloud integration.SLUG: (string) The unique identifier of the Google Cloud integration.EMAIL: (string) The email address of the customer’s Google Cloud service account of the formSERVICE_ACCOUNT@PROJECT-ID.iam.gserviceaccount.com.PROJECT_ID: (string) The ID of the customer’s Google Cloud project to ingest metrics from.PREFIX: (list(string)) A list of metric prefixes to ingest from the Google Cloud project.
Delete a Google Cloud integration
Delete a Google Cloud integration using one of the following methods:- Chronoctl
- API
To delete a Google Cloud integration with Chronoctl, your account must have
SysAdmin permissions.
Use the command:
Metric information
The following sections contain information about Google Cloud metrics information and how Observability Platform uses or displays it.Metrics availability
Google metrics have different stages of availability. Observability Platform prioritizes metrics Google considers Generally Available (GA). Non-GA metrics ingest based on a best-effort basis, and might not provide stable data. On average, Google Cloud metrics display in Observability Platform with a delay on the order of minutes from the metric timestamp in Google Cloud. These metrics appear delayed due to the following factors:- Latency delay: Most Google Cloud metrics have a delay before they’re made available for querying by Google Cloud API. Metrics with an ingest delay exceeding seven hours won’t be ingested into Chronosphere. For example, Firebase database metrics can exceed this latency delay and won’t be ingested.
- Sample rate: Google Cloud metrics sample at different rates. Most metrics sample at 60-second intervals, with some as long as once per day.
networking.googleapis.com/pod_flownetworking.googleapis.com/vm_flownetworking.googleapis.com/node_flow
Metric names
In Observability Platform, Google Cloud metrics have the following name structure:-
MONITORED-RESOURCE-NAMEis the monitored resource type in Google Cloud. -
FULLY-QUALIFIED-METRIC-NAMEis the metric name in Google Cloud, with characters like.and/convert to_to be Prometheus compatible. The following examples are fully qualified metric names in Google Cloud before metric name sanitization:bigquery.googleapis.com/job/num_in_flightcloudsql.googleapis.com/database/available_for_failoverkubernetes.io/container/accelerator/memory_total

cloudsql_database is the monitored resource name and
cloudsql.googleapis.com/database/active_directory/domain_reachable is the fully
qualified metric name. In Observability Platform, the metric name is
gcp_cloudsql_database_cloudsql_googleapis_com_database_active_directory_domain_reachable.
Metric labels
You can request custom labels for your Google Cloud metrics asdefaultLabels. Contact
Chronosphere Support to add them.
When importing metrics, some defaultLabels may conflict with prefixes which
already exist in Observability Platform (for example, job). When this occurs,
Observability Platform adds the prefix exported_ to the source labels to prevent
conflicts.
Finding Google Cloud metrics in Metrics Explorer
Use Metrics Explorer to find and review the status of your ingested metrics.-
All Google Cloud metrics start with the prefix
gcp_. Searching for this prefix displays all Google Cloud metrics in the platform. -
Substring search is possible. For example, if the original Google Cloud metric name
contains a substring like
domain_reachable, searching for the substring returns the Google Cloud metric, along with other metrics containing the substring.
Metric mappings
Google Cloud metrics map closely to Observability Platform metric types. Metric mappings are defined on the metric types page.Metric prefix search
Google Cloud integration scrapes metrics by metric prefix search using the Monitoring Query Language (MQL). Metrics prefix searches use an implicit wildcard (*), and don’t require wildcards
in the configuration to search for multiple metrics.
This following table provides configuration examples for Google Cloud integration:
| Metric Prefix | Description | Example Metrics |
|---|---|---|
cloudsql.googleapis.com/ | Ingest all CloudSQL metrics | cloudsql.googleapis.com/database/active_directory/domain_reachable cloudsql.googleapis.com/database/active_directory/instance_available cloudsql.googleapis.com/database/data_cache/bytes_used cloudsql.googleapis.com/database/uptime |
cloudsql.googleapis.com/database/ | Ingest all CloudSQL metrics starting with database/ | cloudsql.googleapis.com/database/active_directory/domain_reachable cloudsql.googleapis.com/database/active_directory/instance_available cloudsql.googleapis.com/database/data_cache/bytes_used cloudsql.googleapis.com/database/uptime |
bigquery.googleapis.com/s | Ingest all BigQuery metrics starting with s | bigquery.googleapis.com/slots/allocated bigquery.googleapis.com/slots/allocated_for_reservation bigquery.googleapis.com/storage/insertall_inserted_rows bigquery.googleapis.com/storage/uploaded_row_count |
cloudsql.googleapis.com/database/up | Ingest all CloudSQL metrics starting with database/up | cloudsql.googleapis.com/database/up cloudsql.googleapis.com/database/uptime |
b | Ingest all metrics starting with b | backupdr.googleapis.com/protected_data/volume bigquery.googleapis.com/slots/allocated bigtable.googleapis.com/backup/bytes_used |