You are here

GCP Monitoring

Requires Opsview Cloud or Opsview Monitor 6.7
check_circle
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.
     

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 

GCP main menu

 on the left side of the screen select APIs & Services and Enabled APIs & services

GCP APIs menu

Step 3:

Click the Enable APIs and Services button.

GCP APIs menu button

Step 4:

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

GCP APIs menu Stackdriver Monitoring API

Step 5:

Ensure that the Stackdriver Monitoring API is enabled.

GCP Stackdriver API enabled

If it is not yet enabled, click the Enable button. It may take some time until API will be turned on.

GCP Stackdriver API button

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 and continue button to move on to the next step.

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.

Create service account step 2

Step 5 (Optional):

Grant access to additional users to the service account if necessary and then click on Done.

Create service account step 3

Step 6:

On the list of service accounts, click on the service account that was created in the previous steps.

Select service account

Step 7:

On the service account details page, click on the Keys tab. Click on the Add key dropdown button and then Create new key.

Create new key

You will be prompted to select between JSON and P12 key types. Select JSON and then click Create

Select JSON key type

After clicking Create, the file will be automatically downloaded by your browser. Rename this file to 'credentials.json'. Once done, you should then see a pop-up message saying the file has been saved locally and that it should be kept secure. Click Close to finish creating your Service Account.