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:
- Compute Engine Instances
- Cloud Storage Buckets
- Cloud SQL Database Instances
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.
- Retrieve the Service Account Credentials.
Enable the Google Stackdriver Monitoring API Copied
-
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 Enabled APIs & services
- Click the Enable APIs and Services button.
- Using the search box, look for monitoring and from the list select Stackdriver Monitoring API
- Ensure that the Stackdriver Monitoring API is enabled.
If it is not yet enabled, click the Enable button. It may take some time until API will be turned on.
Retrieve the Service Account Credentials Copied
- 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 and continue 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.
- (Optional) Grant access to additional users to the service account if necessary and then click on Done.
- On the list of service accounts, click on the service account that was created in the previous steps.
- On the service account details page, click on the Keys tab. Click on the Add key dropdown button and then Create new key.
You will be prompted to select between JSON and P12 key types. Select JSON and then click Create
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.