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 Copied

Opsview Monitor’s GCP Opspack provides an easy way to monitor performance metrics for:

Host Templates Copied

The following Host Templates are currently provided by 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.

Host Template Description
Cloud - GCP - Compute Monitor Compute Engine Instances.
Cloud - GCP - Storage Monitor Cloud Storage Buckets.
Cloud - GCP - MySQL Monitor MySQL resources.
Cloud - GCP - PostgreSQL Monitor PostgreSQL resources.

Setup Google Cloud Platform for Monitoring Copied

To monitor your GCP environment, you will need to:

Enable the Google Stackdriver Monitoring API Copied

  1. Log into your GCP console: https://console.cloud.google.com/

  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

  1. Click the Enable APIs and Services button.

GCP APIs menu

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

GCP APIs menu

  1. 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 Copied

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

Select GCP project

  1. Click the Create Service Account button.

Create service account

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

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

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

Create service account

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

Create service account

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

Create service account

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

Create service account

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.

["Opsview Cloud"] ["Opsview > Opspacks"] ["User Guide", "Technical Reference"]

Was this topic helpful?