You are here
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.
Cloud - GCP - Compute
add_circleService Check Name | Description | Default Thresholds (Warning, Critical) | UOM |
---|---|---|---|
GCP - Compute - CPU Usage | CPU usage of the Compute instance. | cpu_usage=70,90 | % |
GCP - Compute - CPU Reserved Cores | Number of CPU Reserved Cores. | N/A | N/A |
GCP - Compute - CPU Usage Time | CPU Usage Time. | N/A | s |
GCP - Compute - Disk Bytes | Bytes read and written from disk. | N/A | B |
GCP - Compute - Throttled Disk Bytes | Percentage of throttled bytes read and written from disk. | N/A | % |
GCP - Compute - Disk Operations | Read and write disk operations. | N/A | N/A |
GCP - Compute - Throttled Disk Operations | Percentage of throttled read and write disk operations. | N/A | % |
GCP - Compute - Instance Availability | Instance uptime percentage over the period checked. | availability=100:,80: | % |
GCP - Compute - Network Bytes | Received and sent network bytes for the instance. | N/A | B |
GCP - Compute - Network Packets | Received and sent network packets for the instance. | N/A | N/A |
GCP - Compute - Firewall Dropped Bytes | Bytes dropped by the firewall for the instance. | N/A | B |
GCP - Compute - Firewall Dropped Packets | Packets dropped by the firewall for the instance. | N/A | N/A |
Cloud - GCP - Storage
add_circleService Check Name | Description | Default Thresholds (Warning, Critical) | UOM |
---|---|---|---|
GCP - Storage - Network Bytes | Bytes received and sent by the bucket. | N/A | B |
GCP - Storage - API Requests | Number of API requests to the bucket. | N/A | N/A |
GCP - Storage - Bucket Object Count | Total number of objects in the bucket. This value is measured once per day by Stackdriver, so changes will take 24hrs to appear. | N/A | N/A |
GCP - Storage - Bucket Bytes | Total bytes in the bucket. This value is measured once per day by Stackdriver, so changes will take 24hrs to appear. | N/A | B |
GCP - Storage - Bucket Byte Seconds | Total daily storage used by the bucket in byte-seconds. This value is measured once per day by Stackdriver, so changes will take 24hrs to appear. | N/A | Bs |
Cloud - GCP - MySQL
add_circleService Check Name | Description | Default Thresholds (Warning, Critical) | UOM |
---|---|---|---|
GCP - MySQL - Network Bytes | Network received and sent bytes for the MySQL instance. | N/A | B |
GCP - MySQL - Disk Operations | Disk read and write operations for the MySQL instance. | N/A | N/A |
GCP - MySQL - Database Availability | Database uptime percentage over the period checked for the MySQL instance. | availability=100:,80: | % |
GCP - MySQL - Status | Current serving state of the MySQL instance. | N/A | N/A |
GCP - MySQL - Memory Usage | Memory used by the MySQL instance. | memory_usage=70,90 | % |
GCP - MySQL - Disk Usage | Disk used by the MySQL instance. | disk_usage=70,90 | % |
GCP - MySQL - CPU Usage | CPU used by the MySQL instance. | cpu_usage=70,90 | % |
GCP - MySQL - Queries | Number of received and executed MySQL queries on the MySQL instance. | N/A | N/A |
GCP - MySQL - Bytes | Number of bytes received and sent by the MySQL instance. | N/A | B |
GCP - MySQL - Network Connections | Number of network connections to the MySQL instance. | N/A | N/A |
Cloud - GCP - PostgreSQL
add_circleService Check Name | Description | Default Thresholds (Warning, Critical) | UOM |
---|---|---|---|
GCP - PostgreSQL - Network Bytes | Network received and sent bytes for the PostgreSQL instance. | N/A | B |
GCP - PostgreSQL - Disk Operations | Disk read and write operations for the PostgreSQL instance. | N/A | N/A |
GCP - PostgreSQL - Database Availability | Database uptime percentage over the period checked for the PostgreSQL instance. | availability=100:,80: | % |
GCP - PostgreSQL - Status | Current serving state of the PostgreSQL instance. | N/A | N/A |
GCP - PostgreSQL - Memory Usage | Memory used by the PostgreSQL instance. | memory_usage=70,90 | % |
GCP - PostgreSQL - Disk Usage | Disk used by the PostgreSQL instance. | disk_usage=70,90 | % |
GCP - PostgreSQL - CPU Usage | CPU used by the PostgreSQL instance. | cpu_usage=70,90 | % |
GCP - PostgreSQL - Transaction Count | Number of PostgreSQL transactions. | N/A | N/A |
GCP - PostgreSQL - Replication Lag Bytes | The Replication Lag in bytes for the PostgreSQL instance. | N/A | B |
GCP - PostgreSQL - Network Connections | Number of network connections to the PostgreSQL instance. | N/A | N/A |
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:
From the menu
on the left side of the screen select APIs & Services and Enabled APIs & services
Step 3:
Click the Enable APIs and Services button.
Step 4:
Using the search box, look for monitoring and from the list select Stackdriver Monitoring API
Step 5:
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
Step 1:
From the left menu choose IAM & admin and Service accounts, you will see the service account dashboard.
Step 2:
Click the Create Service Account button.
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.
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.
Step 5 (Optional):
Grant access to additional users to the service account if necessary and then click on Done.
Step 6:
On the list of service accounts, click on the service account that was created in the previous steps.
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.
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.