Our next-gen architecture is built to help you make sense of your ever-growing data Watch a 4-min demo video!

Back to All Integrations

GCP Metrics GCP Metrics

Last Updated: Sep. 10, 2023

Google Cloud Platform provides built-in monitoring and observability tools that allow users to collect and analyze metrics and traces from their GCP resources. Send Google Cloud metrics seamlessly to Coralogix. Search, analyze, and visualize your data, gaining insights into application behavior, identifying errors, and troubleshooting problems.

Create a GCP Service Account

A prerequisite for sending your Google Cloud traces to Coralogix is creating a GCP service account.

STEP 1. Log in to your Google Cloud Console and select the project in which you want the service account to be created.

STEP 2. Navigate to the IAM & Admin section of the console by clicking on the menu on the top left corner of the console. Select IAM & Admin from the menu.

STEP 3. Click Service accounts in the left-hand menu and then click + CREATE SERVICE ACCOUNT.

STEP 4. Input your service account details: name, account ID, and description. Click CREATE AND CONTINUE.

STEP 5. Select roles for the service account. To collect metrics, the roles Compute Viewer, Monitoring Viewer, and Cloud Asset Viewer are required.

STEP 6. Click Done.

STEP 7. An overview of all of your service accounts will appear. Find the service account you just created. Click the three dots in the left-most Action column and select Manage keys.

STEP 8. Click Add Key. Select JSON Key type. Store the key locally, as you will need it for the UI.

Create a GCP Metrics Integration

To start collecting metrics for a GCP project, an integration must be created.

STEP 1. From your Coralogix toolbar, navigate to Data Flow > Extensions.

STEP 2. From the Integrations section, select GCP Metrics.

STEP 3. Click + ADD NEW.

STEP 4. If you haven’t already done so, click GO TO GCP ACCOUNT and create a key file as described above. Once you have created a key file, click NEXT.

STEP 5. Click SELECT FILE and select the JSON key file that you created in the previous section.

A confirmation appears that the file uploaded successfully.

STEP 6. Click NEXT.

STEP 7. Choose the metric prefixes you would like to pull into Coralogix by selecting them from the dropdown menu. To limit unnecessary API calls that fetch no data but count towards the quota limit, specify only the GCP prefixes of the metrics that actually exist and you want to pull into Coralogix.


  • Coralogix queries only the metrics under the selected prefixes.
  • Metrics for which no data is available for more than 15 minutes will reduce the scraping interval from 15 minutes to 1 hour.
  • Querying all of your metrics may result in GCP quota limits and less frequent metric updates.

STEP 8. Click NEXT.

STEP 9. Select the application and subsystem names.

  • Enter a default name for the application, or [optionally] select labels that will be used to create the application name. The first label value which matches a metric label will be used as the application_name. For example, given three application labels, if the first does not match any metrics, the value of the second label will be used as the application name.
  • Enter a default subsystem name or [optionally] select labels that will be used to create the subsystem name.
  • Note: Application and Subsystem names for metrics are optional. If no default name or labels are provided, the application name and subsystem name will not be populated for this metric.

Step 10. Click FINISH.


Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].

On this page