You are here

GCP Monitoring

Requires Opsview Cloud or Opsview Monitor 6.7
Opsview Supported

GCP Monitoring

Google Cloud Platform (GCP) is a cloud services platform offering compute engine, object storage, database storage and other services to help businesses scale and grow without worrying about underlying infrastructure.

What You Can Monitor

Opsview Monitor's GCP monitoring tools provide an easy way to monitor performance metrics for:

  • Compute Engine Instances
  • Cloud Storage Buckets
  • Cloud SQL Database Instances

Host Templates

The following Host Templates are provided within this Opspack. Click the name of each Host Template to be taken to the relevant information page, including a full Service Check description and usage instructions.

GCP Monitoring Prerequisites

Opsview Monitor Version 6.8.0 or newer

GCP Monitoring Setup

To monitor your GCP environment, you will need to: - Enable the Google Stackdriver Monitoring API. - Retrieve the Service Account Credentials. - Add the GCP project to Stackdriver Monitoring.

Enable the Google Stackdriver Monitoring API

Step 1:

Log into your GCP console:

Step 2:

Make sure you have selected the proper project in the top bar - next to the Google Cloud Platform logo:

GCP Project Selected Screenshot

From the menu on the left side of the screen select APIs & Services and Dashboard


Step 3:

Click the Enable APIs and Services button.

GCP Enable API

Step 4:

Using the search box, look for monitoring and from the list select Stackdriver Monitoring API

GCP Select Stackdriver

Step 5:

Click the Enable API button. It may take some time until API will be turned on.

GCP Enable API

Retrieve the Service Account Credentials

Step 1:

From the left menu choose IAM & admin and Service accounts, you will see the service account dashboard.

GCP Service Account Menu

Step 2:

Click the Create Service Account button.

GCP Create Service Account

Step 3:

Populate the fields: Service account name, Service account ID and Service account description, and click the Create button to move on to the next step.

GCP Create Service Account Step 1

Step 4:

Click the Select a role field, and in the filter type monitoring viewer. From the available options select Monitoring Viewer and click the Continue button to move on to the next step.

GCP Create Service Account Step 2

Step 5:

Click the Create key button.

GCP Create Service Account Step 3

Step 6:

On the right side of the screen you will see a tab in which you should set the type of key to JSON, then click Create.

GCP Create Service Account Step 3b

After you click Create you will be asked to save the file with credentials. Once done, you should then see a confirmation message:

GCP Create Service Account Step 3c

Click Close and then click Done to finish creating your Service Account.

Add the GCP project to Stackdriver Monitoring

If you are using Stackdriver for the very first time, you will be asked to create your first workspace. With workspaces you can group your GCP projects into monitoring workspaces.

Step 1:

From the dropdown next to the Stackdriver logo, select Create Workspace.

GCP Create Stack

Step 2:

Click within Google Cloud Platform project field, select the project that you want to monitor within that workspace and click the Create workspace button.

GCP Stack Choose Project

Step 3:

In the next screen, you can add additional GCP projects to the Stackdriver workspace. Once you have selected the desired projects, click Continue.

GCP Stack Add More

Step 4:

In the following screens you can: - Add your AWS projects to the Stackdriver workspace. If you don't want to add your AWS projects, simply click the Skip AWS Setup button. - Setup Stackdriver agents on your VMs. You can skip this step by clicking the Continue button. - Setup reports by email - choose the desired frequency and click the Continue button.

After you've performed all steps, you should see a Finished initial collection! notification:

GCP Stack Finished

You can then click the Launch monitoring button to complete your Stackdriver setup.

Importing this Opspack

Download the cloud-gcp.opspack file from the Releases section of this repository, and import it into your Opsview Monitor instance. Now you can add the Host Templates you want following the info links in the table at the top.

For more information, refer to Opsview Knowlege Center - Importing an Opspack.