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
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.
|Cloud - GCP - Compute||Monitor Compute Engine Instances.|
|Cloud - GCP - Storage||Monitor Cloud Storage Buckets.|
|Cloud - GCP - MySQL||Monitor your GCP MySQL resources.|
|Cloud - GCP - PostgreSQL||Monitor your GCP PostgreSQL resources.|
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
Log into your GCP console: https://console.cloud.google.com/
Make sure you have selected the proper project in the top bar - next to the Google Cloud Platform logo:
From the menu on the left side of the screen select APIs & Services and Dashboard
Click the Enable APIs and Services button.
Using the search box, look for monitoring and from the list select Stackdriver Monitoring API
Click the Enable API button. It may take some time until API will be turned on.
Retrieve the Service Account Credentials
From the left menu choose IAM & admin and Service accounts, you will see the service account dashboard.
Click the Create Service Account button.
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.
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.
Click the Create key button.
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.
After you click Create you will be asked to save the file with credentials. Once done, you should then see a confirmation message:
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.
From the dropdown next to the Stackdriver logo, select Create Workspace.
Click within Google Cloud Platform project field, select the project that you want to monitor within that workspace and click the Create workspace button.
In the next screen, you can add additional GCP projects to the Stackdriver workspace. Once you have selected the desired projects, click Continue.
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:
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.