0

Google Cloud Networking Observability Expert

يحقق في مشاكل الشبكات على Google Cloud.

Investigates Google Cloud networking issues by analyzing Google Cloud logs, metrics, and control-plane diagnostics. Use when troubleshooting Cloud Load Balancing, VPC Flow Logs (traffic analysis, packet drops, Private Service Connect, serverless egress, or cost estimation), Firewall Rules Logging, Cloud NAT, Cloud IDS and Firewall Threat Logs, Cloud VPN tunnels and metrics, Cloud Router BGP sessions and route policies, network latency/RTT, or Network Management Connectivity Tests. Don't use for

Skill · سكل

Install

npx skills add google/skills --skill google-cloud-networking-observability

Works with

claude-code (native), claude (native), codex (native), chatgpt (native), gemini-cli (native), cursor (native), copilot (native), opencode (native), amp (native), roo (native), kiro (native), goose (native), junie (native), trae (native), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible)

Content

Google Cloud Networking Observability Expert

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in [Usage Attribution](references/attribution.md).

🛑 Core Directive: Results First

  1. Single-Guide Loading: Identify the matching guide in Section 2 and read only that file before acting (plus [references/mcp-usage.md](references/mcp-usage.md) when MCP tools are available in your environment).
  2. Data & Metric Lookups: Execute targeted queries to retrieve the requested data. Once a query conclusively answers the lookup (including zero counts or empty results), present the finding without cross-querying secondary telemetry sources.
  3. Troubleshooting & Root-Cause Analysis: Follow the matching guide's workflow to inspect control-plane configurations, logs, and metrics before forming conclusions. Recommend fixes with exact resource names and commands; keep investigations strictly read-only unless the user asks to apply changes (ephemeral Connectivity Tests are permitted when path verification is needed and deleted afterward, and the in-VM probes in the [Cloud VPN & Cloud Router guide](references/vpn-and-router-analysis.md) default to giving the user the commands directly and run over gcloud compute ssh only with explicit user approval for that VM, as that guide's approval steps describe—never manually edit or remove existing ssh-keys metadata).

Procedures

1. Environment & Source Rules

  • Prerequisites: Target projects require an active billing account, authenticated SDK access (gcloud auth login or GOOGLE_APPLICATION_CREDENTIALS, gcloud config set project {project_id}, default region e.g. us-central1 via gcloud config set compute/region {region}; see Google Cloud CLI installation and locations — never install tools without explicit user approval), enabled APIs (compute.googleapis.com, logging.googleapis.com, monitoring.googleapis.com, bigquery.googleapis.com, networkmanagement.googleapis.com, plus optional networkconnectivity.googleapis.com), and read roles (roles/compute.networkViewer, roles/logging.viewer, roles/monitoring.viewer, roles/bigquery.jobUser, roles/bigquery.dataViewer, plus optional roles/run.viewer for Cloud Run backends, roles/networkmanagement.admin for Connectivity Tests, and roles/compute.osLogin / roles/compute.instanceAdmin.v1 with roles/iap.tunnelResourceAccessor for VM SSH inspection).
  • BigQuery First for Volume/Top-N: Always prefer BigQuery linked datasets (_AllLogs) over Cloud Logging for volume trends, top talkers, or aggregations. Never manually aggregate time-series points via the Monitoring API for Top-N tasks.
  • Schema & Sample Check: Inspect a sample log record (LIMIT 1 / --limit=1 --format=json) or fetch the guide's official .md.txt documentation URL before writing complex filters or aggregations to verify exact payload field paths; if bq query fails with schema errors, run bq show --schema --format=json {project}:{dataset}.{table} and bq query --use_legacy_sql=false --dry_run.
  • Metadata Fallback: Subnets with EXCLUDE_ALL_METADATA have NULL VM names in VPC Flow Logs; filter or group by internal IP (jsonPayload.connection.src_ip) instead.
  • Tool Priority: Prefer MCP servers ([references/mcp-usage.md](references/mcp-usage.md)) when declared in your tools; otherwise use gcloud/bq. Never use gcloud monitoring; use REST curl templates in [references/metrics-analysis.md](references/metrics-analysis.md) or the [Cloud VPN & Cloud Router guide](references/vpn-and-router-analysis.md).
  • Non-Interactive Safety: Pass --quiet on read/list gcloud commands when querying optional APIs (such as networkconnectivity.googleapis.com) so a disabled API fails fast instead of waiting on an enablement prompt; report the disabled API and ask the user before running gcloud services enable.

2. Analysis Guides (Read Only the Single Matching Guide)

| Symptom or Task | Reference Guide | | :--- | :--- | | Load Balancing: 4xx/5xx errors, statusDetails, unhealthy backends, health checks, timeouts, latency, routing, or session affinity | [references/load-balancing-analysis.md](references/load-balancing-analysis.md) | | VPC Flow Logs: traffic volume, top talkers, latency, packet drops and loss rates, Private Service Connect (PSC / PSC-I), serverless workloads | [references/vpc-flow-analysis.md](references/vpc-flow-analysis.md) | | VPC Flow Logs Cost Estimation | [references/vpc-flow-logs-cost-estimation.md](references/vpc-flow-logs-cost-estimation.md) | | Firewall Rules & Logs: DENY/ALLOW hits, attributing firewall deny drops to specific rules, blocked IPs, rule shadowing | [references/firewall-analysis.md](references/firewall-analysis.md) | | Cloud NAT: gateway discovery, NAT IP/port mapping audit, port exhaustion drops, allocated connection counts | [references/cloud-nat-analysis.md](references/cloud-nat-analysis.md) | | Threat Logs: Cloud IDS / Firewall Plus high-severity alerts and top attackers | [references/threat-analysis.md](references/threat-analysis.md) | | Cloud VPN & Cloud Router: HA/Classic VPN gateways and tunnels, IKE/IPsec negotiation, Cloud Router BGP sessions, route advertisements, BGP route policies, VPN metrics (vpn_gateway health, traffic, drops), and tunnel data-plane/MTU issues | [references/vpn-and-router-analysis.md](references/vpn-and-router-analysis.md) | | Metrics: internal/external VM RTT, VM throughput, and active probing SLO | [references/metrics-analysis.md](references/metrics-analysis.md) | | Connectivity Tests: reachability path create, describe, delete | [references/connectivity-tests.md](references/connectivity-tests.md) |

Boundaries (CRITICAL)

  • Print SQL: Always print generated SQL in the response.
  • Flow Analyzer Link: For VPC Flow Log tasks, include Google Cloud Console Flow Analyzer.
  • Explicit Time Windows: Resolve relative lookback windows into explicit UTC timestamps or native SQL/CLI interval expressions before querying.

Source and license

Source
Google Skills
Original
google/skills/skills/cloud/google-cloud-networking-observability/SKILL.md
License
Apache-2.0