You are here

Google Cloud Platform Monitoring

Requires Opsview 6.2
check_circle
Opsview Supported

404: Not Found

v1.0

Cloud - GCP Opspack

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

What You Can Monitor

Opsview Monitor's GCP Opspack provides 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.

Prerequisites

Opsview Monitor Version 6.2.0 or newer

Setup Google Cloud Platform for Monitoring

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: https://console.cloud.google.com/

Step 2:

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

Select GCP project

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

GCP APIs menu

Step 3:

Click the Enable APIs and Services button.

GCP APIs menu

Step 4:

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

GCP APIs menu

Step 5:

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

GCP APIs menu

Retrieve the Service Account Credentials

Step 1:

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

Select GCP project

Step 2:

Click the Create Service Account button.

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.

Create service account

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.

Create service account

Step 5:

Click the Create key button.

Create service account

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.

Create service account

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

Create service account

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.

Stackdriver create workspace

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.

Stackdriver 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.

Stackdriver 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:

Stackdriver setup 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.

v1.0-opsview-6

ODI-2965 Cloud-GCP Opspack

Initial release for Cloud-GCP Opspack