You are here

GCP - Compute Engine Monitoring

Requires Opsview Cloud or Opsview Monitor 6.2

This Host Template is part of the Google Cloud Platform Monitoring Opspack

check_circle
Opsview Supported

Host Template: Cloud - GCP - Compute

Monitor your GCP Compute Engine instances with a variety of checks including Availability, CPU, Disk, Memory, Network and Firewall statistics.

This Host Template includes the following Service Checks:

Service 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

Usage Instructions

Step 1: Add this Host Template

Add the Cloud - GCP - Compute Host Template to your Opsview Monitor host. If the resource you're monitoring has no hostname or public IP, then open the Advanced settings pane and change Host Check Command to Always assumed to be UP.

For more information, refer to Opsview Knowledge Center - Adding Host Templates to Hosts.

Step 2: Add and configure variables required for this Host Template

The Service Checks in this Host Template use the following variables, and they will be added to your Opsview Monitor instance when you import the Opspack:

GCP_PROJECT_ID

Parameter Position in Variable Name Description
--project-id Arg1 Monitored Project ID ID of the project to monitor

GCP_INSTANCE_DETAILS

Parameter Position in Variable Name Description
--instance-name Arg1 Instance Name Name of the GCP Compute Engine Instance
--instance-zone Arg2 Instance Zone Zone where the GCP Compute Engine Instance is located

GCP_CREDENTIALS_FILE

This argument is optional, to be used if you have a credentials file in a custom location. We recommend not setting it, and relying on the default location as follows: Create your credentials.json file and run as opsview user /opt/opsview/orchestrator/bin/orchestratorimportscripts etc-plugins cloud-gcp /path/to/credentials.json followed by an Apply Changes to set it up with the correct permissions in the default location (/opt/opsview/monitoringscripts/etc/plugins/cloud-gcp/credentials.json) on all Opsview collectors.

For more information on the credentials file, refer to Create access credentials

Parameter Position in Variable Name Description
--credentials-file Arg1 Credentials File Path of the JSON file with GCP Service Account Credentials

For more information, refer to Opsview Knowledge Center - Adding Variables to Hosts.

For mode-specific help, run the plugin with the -h -m <mode> flags. This will list the required and optional Variable Arguments for that mode. The appropriate mode for each Service Check is listed here:

Service Check Name Mode
GCP - Compute - CPU Usage GCP.Compute.CPU.Usage
GCP - Compute - CPU Reserved Cores GCP.Compute.CPU.Cores
GCP - Compute - CPU Usage Time GCP.Compute.CPU.Time
GCP - Compute - Disk Bytes GCP.Compute.Disk.Bytes
GCP - Compute - Throttled Disk Bytes GCP.Compute.Disk.TBytes
GCP - Compute - Disk Operations GCP.Compute.Disk.Ops
GCP - Compute - Throttled Disk Operations GCP.Compute.Disk.TOps
GCP - Compute - Instance Availability GCP.Compute.Availability
GCP - Compute - Network Bytes GCP.Compute.Net.Bytes
GCP - Compute - Network Packets GCP.Compute.Net.Packets
GCP - Compute - Firewall Dropped Bytes GCP.Compute.FW.Bytes
GCP - Compute - Firewall Dropped Packets GCP.Compute.FW.Packets

Step 3: Apply changes and the system will now be monitored

GCP Compute Engine Service Checks