Skip to main content

Integration through the Google Cloud Console

Overview

To monitor Google Cloud Platform (GCP) resources in Motadata ObserveOps (formerly known as ObserveOps (formerly known as AIOps)), you need to retrieve the following credentials from the Google Cloud Console:

  • Client ID
  • Client Secret

You also need to enable the specific GCP service APIs you want to monitor. This guide walks you through each step.

note

Save the Client Secret immediately after creating the OAuth client, Google will not display it again after you close the dialog. You can also download the JSON file once Client Secret is created.

  1. Log in to the Google Cloud Console.

  2. Open the Navigation Menu using top-left hamburger icon.

  3. Go to APIs & Services and select OAuth Consent Screen.

This displays you the OAuth Overview page.

info

If consent is already enabled for your project, start from Step 2 after navigating to the OAuth Overview page.

  1. Click the Get Started button to configure the consent screen.

  2. Enter the details such as App Name for which you are asking for consent and User Support Email where users can ask questions regarding this consent, under the App Information section and click the Next button.

  1. Select the External option from the Audience list, and click the Next button.

  1. Provide Email Address to which Google will notify you about any changes to your project. Clicking the Next button will lead you to Finish the steps.

  1. Click the Create button to enable the the consent.

Step 2: Add Test User

  1. In the left-side panel under Google Auth Platform screen, click the Audience option.

  2. Click the Add Users button under the Test Users section.

  3. Provide the email id(s) for testing purpose only.

Step 3: Configure Data Access Scopes

  1. In the left-side panel under Google Auth Platform screen, select Data Access.

  2. Review the listed scopes. The following are the example of scopes, which are required for ObserveOps to collect GCP monitoring data:

ScopePurpose
../auth/cloud-platformFull access to Google Cloud services.
../auth/cloudplatformprojects.readonlyView Cloud Platform projects.

  1. Click Add or remove scopes if any required scope is missing, and add it.

Step 4: Create an OAuth Client ID

  1. Open the Navigation Menu using top-left hamburger icon.

  2. Go to APIs & Services and select Credentials.

  1. On the Credentials page, click + Create credentials option available in the top bar. From the displayed list select OAuth client ID option.

  2. In the Create OAuth client ID form, set Application type to Web application.

Give the client a name.

  1. Provide URL(s) in the Authorized JavaScript origins section. i.e., {Motadata_Application_Domain}.
note

You have to provide the domain only, it will not work with the IP address.

  1. In Authorized redirect URls section, provide the Redirect URL you have copied while creating the credential profile, then click the Create button.

Completing this step, Google displays the OAuth client created dialog with your Client ID and Client Secret.

note

Copy and securely save both values before closing this dialog. The Client Secret cannot be retrieved again without it, syncing GCP data with ObserveOps is not possible.

  1. Click OK to close the dialog.

Step 5: Enable Required GCP Service APIs

ObserveOps can only collect metrics for GCP services whose APIs are enabled in your project. You must enable each service API before ObserveOps can discover and monitor it.

  1. Open the Navigation Menu, go to APIs & Services, and select Enabled APIs & services.

  1. Click + Enable APIs and services.

  2. Search for each service you want to monitor and click Enable.

The following APIs are commonly required:

APIMonitors
Cloud Monitoring APIGCP metrics and alerting
Compute Engine APIVM instances
Cloud Filestore APIManaged file storage
Cloud Resource Manager APIProject and resource hierarchy
Cloud Storage APIObject storage buckets
  1. Repeat for each additional service you want ObserveOps to monitor.

Summary

You now have all the credentials and API access required to integrate Google Cloud with Motadata ObserveOps:

ItemWhere to Find It
Client IDAPIs & Services → Credentials → OAuth client → Client ID
Client SecretAPIs & Services → Credentials → OAuth client → Client Secret (save at creation)
Enabled APIsAPIs & Services → Enabled APIs & services

Use the Client ID and Client Secret when creating a credential profile for Google Cloud in ObserveOps. Refer to Adding Cloud Devices for Monitoring to continue.