Prerequisites
GCP Project, you can list yours or create one here
Service account and Cloud Resource Manager API
OneIQ IT environment
Overview
This article explains how to collect inventory and performance data from GCP.
Discovering GCP
Login to the OneIQ Portal
Select IT Environments in the left navigation menu
In the IT environment, go to the Connectors tab
Select the Google Cloud Platform
In the Download manifest section, add the inputs as shown in the example below
If needed list VM sizes and zones using this account: https://console.cloud.google.com/compute/instancesAdd
Required permissions
For a collection to work, an IAM service account is required with the following permissions:
Viewer Service Account role
Cloud Resource Manager API permissions
IAM
Navigate to GCP IAM menu
Go to Service Accounts
Create service account
In the "Grant this service account access to the project" menu, assign the pre-built Viewer role.
Note the service account name (for example oneiq-pulse@projectName.iam.gserviceaccount.com)
Download Service Account Keys
Go to Service Account's
Keys
Click Add Key - Create a new Key
Choose JSON format
A private key is saved to your computer
Adding the same service account to another project is simple. Open:
https://console.cloud.google.com/iam-admin/iam?project={id}
Add the same service account that was created in step 5 and grant it with the Viewer role.
Cloud Resource Manager API
The Google Cloud Resource Manager API is used to manage and organize resources within Google Cloud Platform (GCP) projects. It provides a set of functionalities and tools to help users create, manage, and organize cloud resources in a structured and controlled manner. GCP collection requires Cloud Resource Manager API to be enabled:
Navigate to Cloud Resource Manager API:
https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project={id}
Click Enable
Deployment of OneIQ Pulse in GCP
To deploy the generated manifest, use gcloud
command either via the cloud shell or your local instance running gcloud
using the following commands:
# Define the name of your deployment:
deploymentName=oneiq-pulse-gcp
# Define the template containing the manifest for your deployment
template=oneiq-pulse-gcp.jinja
# Deploy your manifest
gcloud deployment-manager deployments create $deploymentName --template $template
To remove your deployment, run the following command:
gcloud deployment-manager deployments delete $deploymentName -q