THE MEDIA FOR AI THAT ACTUALLY HELPS.French edition · Understand & take action
The interface is in English. Use cases, skills and articles remain in French.
Google

Enquêter sur les problèmes réseau Google Cloud

google-cloud-networking-observability

En bref

Investigation réseau à partir des journaux, métriques et diagnostics Google Cloud : paquets ou trafic rejetés et leurs raisons, VPC Flow Logs (y compris Private Service Connect, VPC direct pour du serverless / App Engine, et estimation de coût), journaux NAT, pare-feu ou de menace, latence et débit, et tests de connectivité pour un chemin. On identifie d’abord la source primaire, on exécute le minimum pour répondre, et on s’arrête même si le résultat est zéro ou « pas de trafic » — sans enchaîner pour « trouver de l’actif ». L’estimation de coût des VPC Flow Logs doit suivre la référence dédiée du skill. Certaines API de monitoring se requêtent de façon documentée (pas gcloud monitoring s’il est restreint). Ce n’est pas de la gestion générique de VM, ni une tâche hors observabilité.

Ce que ça fait

  • Choisis la bonne source (journaux de pare-feu, NAT, flux VPC, menaces, métriques, Connectivity Tests) avant d’interroger.
  • Présente le constat dès qu’il est obtenu, y compris une absence de trafic, sans relancer une pêche aux données « plus intéressantes ».
  • Pour une estimation de coût des flux VPC, s’en tient au guide interne du skill, sans bricoler une autre méthode.
  • Écarte l’administration d’une VM et tout travail qui n’est pas de l’observabilité réseau.

Pour qui, et un exemple

SRE réseau qui expliquent un drop, un NAT, un flux VPC ou un chemin cassé, à partir des journaux et tests de connectivité, pas en reconfigurant la VM.

Exemple de demande : « Pourquoi ce trafic est-il droppé ? Interroge les VPC Flow Logs et un Connectivity Test, estime le coût des logs si besoin, et arrête-toi même s’il n’y a aucun flux. »

Le SKILL.md enquête le réseau via journaux, métriques et Connectivity Tests, avec une règle « résultats d’abord », hors gestion de VM. Exemple rédigé par iadujour.fr à partir du SKILL.md, non testé.

Installer

npx skills add google/skills, puis sélectionner la skill, les agents cibles et la portée (README).

npx skills add google/skills

Niveau : Avancé

Suppose un projet Google Cloud et de solides notions de réseau (VPC, équilibrage de charge, DNS).

Extrait du SKILL.md

La description d’origine, celle que l’agent lit pour décider de charger la skill (en anglais) :

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), NAT, firewall, or threat logs, […]

Citée depuis le SKILL.md au commit 793c036 . Le dossier contient aussi 9 fichiers annexes (references/).

Le SKILL.md compte 152 lignes et 5 sections principales :

  • Attribution
  • 🛑 Core Directive: Results First
  • Log & Telemetry Overview
  • Procedures
  • Boundaries (CRITICAL)

Licence : Apache 2.0

Vérifiée le 10 novembre 2026 sur : fichier LICENSE du dépôt .

La licence autorise la reprise : le texte intégral du SKILL.md est reproduit ci-dessous, sans modification, avec sa mention de licence.

Texte intégral du SKILL.md

Reproduit sans modification depuis google/skills (commit 793c036) , © Google, sous licence Apache 2.0 (fichier de licence d’origine ).

Afficher le SKILL.md original (152 lignes, en anglais)
---
name: google-cloud-networking-observability
metadata:
  version: "1.0.6"
  category: Compute
description: >-
  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), NAT, firewall, or threat logs, querying latency and throughput metrics, or running Connectivity Tests for path diagnostics. Don't use for generic VM management or non-observability tasks.
---

# Google Cloud Networking Observability Expert

## Attribution

For all `gcloud` CLI, REST API, and MCP attribution requirements when executing
commands with this skill, follow the instructions in
[Usage Attribution](references/attribution.md).

## 🛑 Core Directive: Results First

1.  **Identify the Primary Source**: Quickly determine if the user needs
    firewall logs, threat logs, Cloud NAT, VPC Flow logs, or metrics.
2.  **Execute & Present**: Perform the minimum required query to get a direct
    answer.
3.  **Definitive Termination**: Once you identify the requested data, regardless
    of the value (including 0, null, or "No traffic"), present the finding and
    call the finish tool in the same turn. Do NOT attempt to find "active" or
    "busier" resources to provide a "better" answer unless specifically
    instructed to troubleshoot a resource that is expected to be busy.

## Log & Telemetry Overview

-   **Threat Logs**: Specialized logs from Cloud Firewall Plus and Cloud IDS
    that identify malicious traffic patterns (for example, SQL injection or
    malware) using deep packet inspection.
-   **VPC Flow Logs**: Capture sample IP traffic to and from network interfaces.
    Use for traffic analysis, volume trends, top talkers, dropped traffic, and
    packet loss.
-   **Firewall Logs**: Record connection attempts matched by firewall rules. Use
    to identify "DENY" events or verify "ALLOW" rules.
-   **Cloud NAT Logs**: Audit NAT translations. Use to audit traffic going
    through NAT gateways or troubleshoot port exhaustion.
-   **Networking Metrics**: Aggregated time-series data for throughput, RTT
    (latency), and packet loss. Use for historical trends and performance
    monitoring.
-   **Connectivity Tests**: Static analysis tool for path diagnostics. Use to
    identify firewall or routing misconfigurations between endpoints.

## Procedures

### 0. Log Source Preference

-   **ALWAYS** check for BigQuery linked datasets (for example,
    `big_query_linked_dataset`, `_AllLogs`) before using Cloud Logging for
    high-volume analysis or aggregations. This is the preferred method for
    finding trends or top-blocking rules.
-   **Schema & Sample Discovery**: Before writing complex aggregations or filter
    queries in BigQuery or Cloud Logging, first inspect a single sample log
    record (`LIMIT 1` with `--format=json` in `bq query`, or `--limit=1` in
    `gcloud logging read`) to verify the exact payload schema and field paths.
-   **Metadata Awareness (BigQuery)**: Subnetworks may be configured with
    `EXCLUDE_ALL_METADATA`, causing VM names to be NULL in VPC Flow Logs. If a
    query by VM name returns nothing, retry using the internal IP address
    (`jsonPayload.connection.src_ip`).

### 1. Tool Selection & Discovery

-   **MCP Servers First**: Use
    [Cloud Monitoring MCP](references/mcp-usage.md#cloud-monitoring-mcp),
    [BigQuery MCP](references/mcp-usage.md#bigquery-mcp), or
    [Cloud Logging MCP](references/mcp-usage.md#cloud-logging-mcp).
-   **Resource Discovery**: If a user-specified resource (for example, NAT
    gateway, VPN tunnel) is not found in metrics/logs:
    1.  Use `run_shell_command` with `gcloud` to list resources in the project.
    2.  Search [Cloud Logging MCP](references/mcp-usage.md#cloud-logging-mcp)
        for the resource name to find correct labels.
-   **CLI Fallback**: Use `gcloud` or `bq` only if MCP servers are unavailable.
    DO NOT use gcloud monitoring; it is restricted. Immediately use the curl
    templates in [metrics-analysis.md](references/metrics-analysis.md).

### 2. Schema Verification & Error Recovery

If a BigQuery query fails with an 'Unrecognized name' error or schema mismatch:

1. **Validate Schema**: Run `bq show --schema --format=json
{project_id}:{dataset_id}.{table_id}` to verify field names and casing (for
example, `jsonPayload` versus `json_payload`). 2. **Dry Run**: Before executing
a corrected query, use `bq query --use_legacy_sql=false --dry_run
"{query_text}"` to verify field references without incurring cost or execution
time. 3. **Retry**: Apply identified fixes to the original query and execute.

### 3. Analysis Guides (Read Only When Needed)

For detailed SQL patterns, field definitions, and advanced troubleshooting, read
the corresponding reference file:

-   **Threat Log Analysis**:
    [references/threat-analysis.md](references/threat-analysis.md)
-   **VPC Flow Analysis**:
    [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)
-   **Cloud NAT Analysis**:
    [references/cloud-nat-analysis.md](references/cloud-nat-analysis.md)
-   **Firewall Rule Analysis**:
    [references/firewall-analysis.md](references/firewall-analysis.md)
-   **Networking Metrics**:
    [references/metrics-analysis.md](references/metrics-analysis.md)
-   **Connectivity Test Analysis**:
    [references/connectivity-tests.md](references/connectivity-tests.md)

> **CRITICAL**: If the user asks for **Cost Estimation**, you MUST strictly use
> `references/vpc-flow-logs-cost-estimation.md`. Do NOT read or use
> `references/vpc-flow-analysis.md` for cost estimation tasks.

## Boundaries (CRITICAL)

-   **ALWAYS** present the direct answer as soon as it is identified.
-   **NEVER** run more than 2 exploratory queries before showing results.
-   **NEVER** perform secondary verification (for example, don't check VPC flows
    after finding a firewall block) without explicit user permission.
-   **ALWAYS** print the generated SQL for review before execution.
-   **ALWAYS** include a link to the Flow Analyzer in the
    [Google Cloud Console](https://console.cloud.google.com/net-intelligence/flow-analyzer).
-   **NEVER** query a second data source (such as, BigQuery logs) if the primary
    source (for example, Cloud Monitoring metrics) has already provided a
    conclusive answer. **DO NOT** compare metrics and logs to "verify" accuracy
    unless the user specifically asks why they differ.
-   **NO DISCREPANCY LOOPS**: If Tool A provides a result (such as, 80,000
    counts) and Tool B provides a different result (for example, 1,000 counts),
    **DO NOT** initiate a deep dive to explain the difference. Present the
    result from the primary tool and STOP.
-   **ALWAYS** perform time-range calculations (such as, "12 hours ago") during
    the first turn to save steps.
-   **Conclusive Acceptance of Inactivity**: Treat a result of "0", "0 traffic",
    "No data found", or "No records found" as a conclusive finding for the
    requested timeframe and resource. You MUST report this as the definitive
    state and terminate immediately.
-   **Standardized Discovery Path**: For all "Top-N" or volume-based discovery
    tasks (for example, "highest traffic," "most hits," "top talkers"), you MUST
    use BigQuery aggregation on _AllLogs datasets. Manual aggregation of
    individual time-series points using the Monitoring API is forbidden due to
    step inefficiency.
-   **Ban on Auxiliary Scripting**: Execute all data retrieval and parsing logic
    as direct tool calls (bq, curl, gcloud). Do NOT write or execute local shell
    scripts (.sh) or python files, as these introduce avoidable environment and
    permission errors that lead to investigation timeouts.
-   **Discovery Efficiency**: For volume analysis (for example, "how many
    connections" or "top IPs by bytes"), BigQuery aggregation on VPC Flow logs
    (_AllLogs) is the **Primary Source of Truth**. If BigQuery data is
    available, it is conclusive. Do NOT query Monitoring API to "double check"
    BigQuery counts.
Source. Fiche rédigée par iadujour.fr à partir de : Frontmatter, sections et corps du SKILL.md, README du dépôt. Consultée le 10 novembre 2026. Dépôt : google/skills .
MÊME ÉDITEUR

Autres skills Google : Observabilité et supervision

Toute la catégorie
GoogleObservabilité et supervision

Configurer Cloud Logging pour un projet

cloud-logging-configuration-basics

Configuration de Cloud Logging dans un seul projet : seaux régionaux, sinks, vues, restriction ou masquage de journaux sensibles dans le filtre de la vue _Default, droits IAM sur une vue (Logs View Accessor, conditions), métriques basées sur les journaux, exclusions et échantillonnage.

Outils : Non précisé par l’éditeurNiveau : Avancémàj 09/11/2026
GoogleObservabilité et supervision

Configurer des alertes Cloud Monitoring

cloud-monitoring-alert-configuration

Politiques d’alerte Terraform (google_monitoring_alert_policy) en PromQL, pour Cloud Run, GKE, Compute Engine, réservations AI Hypercomputer, Vertex AI Agent Engine, ou une ressource générique : latence, trafic, erreurs, saturation, maintenance d’hôte ou de réservation, signaux GPU XID, télémétrie d’agent IA.

Outils : Non précisé par l’éditeurNiveau : Avancémàj 09/11/2026
GoogleObservabilité et supervision

Configurer les canaux de notification

cloud-monitoring-notification-channels-configuration

Cette skill rédige du Terraform (google_monitoring_notification_channel, et l’attache à une politique d’alerte existante) pour des canaux e-mail, SMS, Slack, PagerDuty, Pub/Sub ou webhook.

Outils : Non précisé par l’éditeurNiveau : Intermédiairemàj 09/11/2026
ÉCHANGES

Commentaires.

Un retour d’expérience, une question, une précision sur cette skill ? Les commentaires sont relus avant publication.

Commentaires publiés

Chargement des commentaires…

    Laisser un commentaire

    Charte de modération. Chaque commentaire est relu avant publication. Sont refusés : l’incitation à la haine, les propos injurieux ou discriminatoires, la publicité, le spam et les liens promotionnels, le hors-sujet et les données personnelles d’autrui.