Knowledge Graph nodes
Knowledge Graph nodes
- Compute Engine Instances
- Persistent Disks
- Cloud SQL Instances
- Cloud Storage Buckets
- Load Balancers (URL Maps)
- Backend Services
- Target Pools
- GKE Clusters and Node Pools
- Cloud Functions (v1 and v2)
- Cloud Run Services
Metrics
Metrics
Compute Engine Instances:
- CPU Utilization
- CPU Usage Time
- Disk Read/Write Bytes
- Disk Read/Write Operations
- Network Received/Sent Bytes
- Network Received/Sent Packets
- Memory Balloon RAM Used/Size
- CPU Utilization
- CPU Usage Time
- Disk Bytes Used/Quota
- Disk Read/Write Operations
- Memory Utilization/Usage/Quota
- Network Connections
- Network Received/Sent Bytes
- Replication Replica Lag
- Database Uptime
MCP Tools
MCP Tools
- get_realtime_compute_instance_status: Get real-time status information for a Compute Engine instance
- get_cloud_sql_instance_status: Get status information for a Cloud SQL database instance
Prerequisites
You should have GCP credentials configured through one of the following methods:- Application Default Credentials (ADC): Set up using
gcloud auth application-default login(recommended for local development and cloud environments). Requires the gcloud CLI to be installed. - Service Account Key File: Create and download a service account key file from the GCP Console
Required Permissions
The GCP plugin requires read-only access to various GCP resources. Below is the recommended IAM (Identity and Access Management) configuration.Option 1: Use Built-in Viewer Role (Recommended for Getting Started)
The simplest approach is to assign the built-in Viewer role at the project level:Option 2: Custom Role with Minimal Permissions (Recommended for Production)
For production environments, create a custom role with only the permissions needed by Unpage:Permissions Breakdown
The custom role includes permissions for:- Compute Engine: Read access to VM instances, persistent disks, and load balancing resources
- Cloud SQL: Read access to database instances
- Cloud Storage: Read access to storage buckets
- GKE: Read access to Kubernetes clusters
- Cloud Functions: Read access to serverless functions
- Cloud Run: Read access to containerized services
- Cloud Monitoring: Read access to metrics for all resources
- Cloud Logging: Read access to logs for all resources
- Resource Manager: List and read project information
Configuration
Configure the GCP plugin by runninguv run unpage configure or by editing
the ~/.unpage/profiles/<profile_name>/config.yaml file:
Authentication Methods
adc: Uses Application Default Credentials (set up viagcloud auth application-default login)service_account: Uses a service account key file (requiresservice_account_key_path)
Tools
The GCP plugin provides the following tools to Agents and MCP Clients:get_realtime_compute_instance_status
Get real-time status information for a Compute Engine instance directly from GCP API.ArgumentsReturns
The Compute Engine instance name.
The GCP zone where the instance is located (e.g., “us-central1-a”).
The GCP project ID. If not provided, uses the default project from configuration.
dict | string: A dictionary containing instance status information or an error message if the instance couldn’t be found.Example response:get_cloud_sql_instance_status
Get status information for a Cloud SQL database instance.ArgumentsReturns
The Cloud SQL instance name.
The GCP project ID. If not provided, uses the default project from configuration.
dict | string: A dictionary containing database instance status and configuration details or an error message if the instance couldn’t be found.Example response:
