Skip to main content

google-cloud-networking-observability

Investigates Google Cloud networking issues by analyzing GCP logs, metrics, and diagnostics. Use when investigating dropped network traffic, packet drops, drop reasons, VPC Flow Logs (including Private Service Connect / PSC, serverless / App Engine Direct VPC, and cost estimation), Cloud NAT, firewall or threat logs, VPN metrics/tunnels, or Connectivity Tests for path diagnostics. Don't use for generic VM management or non-observability tasks.

GoogleCloudApache-2.0

SKILL.md

Written by Google and published in google/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.

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.

🛑 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 when MCP tools are available in your environment).
  2. Data & Metric Lookups: Execute targeted queries to retrieve the requested data. Once obtained (including 0, null, or "No traffic"), present it and stop immediately. Never query a second source (e.g., comparing BigQuery and Monitoring) to double-check a conclusive answer.
  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—never mutate project resources or workload state during investigation (except ephemeral Connectivity Tests when path verification is needed).

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), and read roles (roles/compute.networkViewer, roles/logging.viewer, roles/monitoring.viewer, roles/bigquery.jobUser, roles/bigquery.dataViewer, or roles/networkmanagement.admin for Connectivity Tests).
  • 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) when declared in your tools; otherwise use gcloud/bq. Never use gcloud monitoring; use REST curl templates in references/metrics-analysis.md.

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

Symptom or Task Reference Guide
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
VPC Flow Logs Cost Estimation 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
Cloud NAT: gateway discovery, NAT IP/port mapping audit, port exhaustion drops, allocated connection counts references/cloud-nat-analysis.md
Threat Logs: Cloud IDS / Firewall Plus high-severity alerts and top attackers references/threat-analysis.md
Metrics & VPN: internal/external RTT, VM throughput, packet loss, or Cloud VPN (vpn_gateway health, traffic, drops) references/metrics-analysis.md
Connectivity Tests: reachability path create, describe, delete 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.
  • First-Turn Time Math: Compute relative time ranges (e.g., "12 hours ago") in the first turn.

When google-cloud-networking-observability runs

Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /google-cloud-networking-observability in Claude Code or $google-cloud-networking-observability in Codex.

The description says when to use it:

Use when investigating dropped network traffic, packet drops, drop reasons, VPC Flow Logs (including Private Service Connect / PSC, serverless / App Engine Direct VPC, and cost estimation), Cloud NAT, firewall or threat logs, VPN…

Install google-cloud-networking-observability

Claude Code

Copy the google-cloud-networking-observability folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.

git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .claude/skills
cp -r /tmp/google-skills/skills/cloud/google-cloud-networking-observability .claude/skills/

Codex

Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if google-cloud-networking-observability does not appear.

git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .agents/skills
cp -r /tmp/google-skills/skills/cloud/google-cloud-networking-observability .agents/skills/

Treq

Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for google-cloud-networking-observability and choose Install….

Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.

Files

google-cloud-networking-observability ships 10 files, 45.8 KB in total. Select a file to load it from GitHub.

references/attribution.md1.9 KBView on GitHub ↗

All skills by Google