OpsRamp helps you discover, integrate seamlessly and access details of how your Google Cloud services are performing. Google Cloud consists of a set of physical assets, such as computers and hard disk drives, and virtual resources, such as virtual machines (VMs), that are contained in Google data centers around the globe. This page explains how to configure integration with Google Cloud Platform.

Prerequisite

The service account created to give access to the Google Cloud resources must at least be assigned the viewer role. For more details on IAM roles, see Google cloud documentation on Understanding roles. To grant a service account access to a project, see Creating and managing service accounts.

Google Cloud Platform configuration

To install GCP integration:

  1. Log into your Google Cloud portal.
  2. Select the project that you are assigned to and click Open.
  3. Copy the Project ID from the Project info section.
  4. On the left pane, click IAM & Admin > Service Accounts.
  5. From the displayed service accounts for your project, copy and paste the service account email ID in a text editor such as Notepad.
  6. From the available options, under the Actions column, select Create key.
  7. From the Create private key for “project-name” window, select P12 and click CREATE.
    GCP - Private key
  8. Download the file at a safe location.
    A new window opens, confirming the downloading of the file and the private key password.
  9. Copy the private key password to a text editor at a safe location.

You will not be able to see the password again. You need this password to use the private key.

OpsRamp configuration

After you have copied all the details from your Google Cloud console, use the details to install the Google Cloud integration on the OpsRamp console.

To install GCP integration:

  1. Go to Setup > Integrations and Apps. If apps are already installed, the INSTALLED APPS page is displayed, else the AVAILABLE APPS page is displayed.

  2. Search for Google Cloud app using the search option. You can also use the All Categories dropdown and select the appropriate public cloud category.

  3. Click ADD. The Add Google Cloud page is displayed.

  4. In the Configure page, provide the details in the fields:

    • Provide a suitable name for the integration.
    • Enter the service account email ID.
    • Enter the Project ID.
    • For Service Account Management Certificate, click Choose File and select the private key P12 file through the file browser.
    • In the Management Certificate PassPhrase field, enter the password of the private key file.

  5. Click NEXT.

  6. In the Filter page, you will have two ways to filter:

    • Filter by Resource Tag
    • Filter by Resource Type

Filter by Resource Tag

  • Choose ALL or ANY to match any one or all of the defined conditions for filtering.
  • Provide the following details:
    • Key: Add the input key
    • Operator: Select a operator from the drop down list
    • Value: Value corresponding to the attribute name and logical condition.

Filter by Resource Type

  • Choose ALL or SELECT to match any one or all of the defined conditions for filtering.
    • ALL: If you choose ALL, means all existing and future resources will be discovered.
    • SELECT: Select the required resource types from the list.
  1. Click NEXT.
  2. In the Settings page, select the actions to be performed on the resources.
    • Select the Manage Device option such that all the discovered resources are in a managed state.
    • Select the Collect Cost Analytics option to collect cost details of the resources utilized in the project and enter the bucket name configured for billing.
    • Select the Stream Google Events option to consume GCP events and enter the GCP event subscription name.
    • From the Assign Gateway Management Profile, select the gateway management profile from the drop-down list.

    • Click Install Agent (Linux only) if the agent needs to be installed on the device and select the device credentials.
      Select Agent Type as Direct or Proxy.
      If you select Proxy then select a gateway management profile from the drop-down list.
    • Select the Discovery Schedule option to schedule a discovery and define the preferred Recurrence pattern.
  3. Click FINISH. The Google Cloud app is installed.
    All the discovered services are visible in the Infrastructure page under
    Resources > Google Cloud
  4. Click Google Cloud. The list of installed Google Cloud integrations are displayed. You can perform actions like Edit, Uninstall, Rescan.