VM Monitoring
Find VM by Name
Search for a VM instance by name across all projects and zones.Path Parameters
Name of the VM to search for
Example Request
Response
Project ID containing the VM
Zone where the VM is located
VM instance name
Unique instance ID
Current VM status
VM machine type
Full resource identifier
Get Available Metrics
Retrieve all available monitoring metrics for a VM instance.Path Parameters
GCP project ID
VM instance ID
Response
Array of available metrics
Example Response
Get Metric Time Series
Retrieve time-series data for a specific metric.Path Parameters
GCP project ID
VM instance ID
Request Body
Metric type to query (e.g., “compute.googleapis.com/instance/cpu/utilization”)
Time range in minutes to query (default: 60)
Example Request
Response
Array of data points
Check Ops Agent Status
Check if the Ops Agent is installed and running on a VM.Path Parameters
GCP project ID
VM instance ID
Response
Whether the Ops Agent is active
Status message
Install Ops Agent
Install the Ops Agent on a VM instance.Path Parameters
GCP project ID
VM instance ID
Response
Query VM Logs
Query logs for a specific VM using LQL (Logging Query Language).Path Parameters
GCP project ID
VM instance ID
Request Body
LQL query string (must include
resource.labels.instance_id="{instance_id}")Example Request
Response
Array of column names
Array of row data (each row is an array matching columns)
VM Alerts
List VM Alerts
List all alert policies configured for a specific VM.Path Parameters
GCP project ID
VM instance ID
Response
Array of alert policies
Create VM Alert
Create a new alert policy for a VM.Path Parameters
GCP project ID
VM instance ID
Request Body
Display name for the alert
Metric type to monitor
Threshold value to trigger the alert
Example Request
Response
Delete VM Alert
Delete an alert policy for a VM.Path Parameters
GCP project ID
Alert policy ID to delete
Example Request
Response
Container Monitoring
Find Container by Name
Search for a Cloud Run service by name across all projects.Path Parameters
Name of the Cloud Run service
Response
Get Container Available Metrics
Retrieve available metrics for a Cloud Run service.Path Parameters
GCP project ID
Service region
Cloud Run service name
Response
Get Container Metric Data
Retrieve time-series data for a Cloud Run metric.Path Parameters
GCP project ID
Service region
Cloud Run service name
Request Body
Metric type to query
Time range in minutes
Response
Query Container Logs
Query logs for a Cloud Run service.Path Parameters
GCP project ID
Cloud Run service name
Request Body
LQL query (must include
resource.labels.service_name="{container_name}")Response
Container Alerts
List Container Alerts
List alert policies for a Cloud Run service.Path Parameters
GCP project ID
Cloud Run service name
Create Container Alert
Create an alert policy for a Cloud Run service.Path Parameters
GCP project ID
Service region
Cloud Run service name
Request Body
Alert display name
Metric type to monitor
Threshold value
Delete Container Alert
Delete an alert policy for a Cloud Run service.Path Parameters
GCP project ID
Alert policy ID