Skip to content

GCP GKE

Collect GCP GKE metrics.

Configuration

Install Func

We recommend enabling TrueWatch Integration - Extensions - Managed Func. All prerequisites are installed automatically; continue with the script installation.

If you deploy Func yourself, see Self-deploying Func.

Install Script

  1. Log in to the Func console, click [Script Market], open the TrueWatch Script Market, and search for integration_gcp_gke.
  2. Click [Install], then enter the required parameters: account file name, Target Principal, and account name.
  3. Click [Deploy Startup Script]. The system automatically creates a Startup script set and configures the corresponding startup script.
  4. After enabling it, find the automatic trigger configuration under "Management / Automatic Trigger Configuration". Click [Execute] to run it immediately, then review the task record and logs.

Verification

  1. Under "Management / Automatic Trigger Configuration", confirm that the task exists and check its task records and logs for errors.
  2. In TrueWatch, check "Infrastructure / Custom" for the corresponding asset information.
  3. In TrueWatch, check "Metrics" for the corresponding measurement and monitoring data.

Metrics

GCP GKE metrics are stored in the gcp_gke measurement. The original metrics come from the Cloud Monitoring kubernetes.io/ namespace. Cloud Monitoring system metric collection must be enabled for the GKE cluster. The table below lists key metrics; see GCP GKE metrics for the complete metric catalog.

Metric Original Metric Description Unit
container_cpu_core_usage_time container/cpu/core_usage_time Container cpu core usage time s{CPU}
container_cpu_limit_cores container/cpu/limit_cores Container cpu limit cores Count
container_cpu_limit_utilization container/cpu/limit_utilization Container cpu limit utilization Ratio
container_cpu_request_cores container/cpu/request_cores Container cpu request cores Count
container_cpu_request_utilization container/cpu/request_utilization Container cpu request utilization Ratio
container_ephemeral_storage_used_bytes container/ephemeral_storage/used_bytes Container ephemeral storage used bytes Bytes
container_memory_limit_bytes container/memory/limit_bytes Container memory limit bytes Bytes
container_memory_limit_utilization container/memory/limit_utilization Container memory limit utilization Ratio
container_memory_request_bytes container/memory/request_bytes Container memory request bytes Bytes
container_memory_request_utilization container/memory/request_utilization Container memory request utilization Ratio
container_memory_used_bytes container/memory/used_bytes Container memory used bytes Bytes
node_cpu_allocatable_cores node/cpu/allocatable_cores Node cpu allocatable cores Count
node_cpu_allocatable_utilization node/cpu/allocatable_utilization Node cpu allocatable utilization Ratio
node_memory_allocatable_bytes node/memory/allocatable_bytes Node memory allocatable bytes Bytes
node_memory_allocatable_utilization node/memory/allocatable_utilization Node memory allocatable utilization Ratio
node_latencies_startup node/latencies/startup Node latencies startup s
pod_network_received_bytes_count pod/network/received_bytes_count Pod network received bytes count Bytes
pod_network_sent_bytes_count pod/network/sent_bytes_count Pod network sent bytes count Bytes