Guides and automates setup, onboarding, and synthetic monitoring operations for Cloud Network Insights in Google Cloud and Broadcom AppNeta. Use when enabling Cloud Network Insights, deploying or troubleshooting Monitoring Points across cloud and on-premises environments, configuring Network or Web monitoring policies and AppNeta alarm rules, configuring alert policies, querying path alarms and performance metrics, or verifying synthetic path reachability. Don't use for generic network observability, VPC Flow Logs, Cloud NAT, or VPC firewall debugging.
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.
For all gcloud CLI, REST API, and MCP attribution requirements when executing
commands with this skill, follow the instructions in
Usage Attribution.
ACTIVE, ACTIVATING, or path listings)
immediately.Cloud Network Insights provides comprehensive synthetic monitoring for Cross-Cloud Network observability in partnership with Broadcom AppNeta. It monitors network and web paths using Monitoring Points (MPs) installed across Google Cloud, on-premises data centers, other public clouds (like AWS or Azure), and the public internet.
This skill automates onboarding, service enablement, Monitoring Point deployment, policy creation, and path verification.
Enable API:
gcloud services enable networkmanagement.googleapis.com --project=PROJECT_ID
Create Provider (use external to match the Google Cloud console
default, or a custom PROVIDER_ID):
gcloud network-management network-monitoring-providers create PROVIDER_ID \
--provider-type=EXTERNAL \
--location=global \
--project=PROJECT_ID
⚠️ If this command fails due to unaccepted Terms of Service, direct the user to the Google Cloud console onboarding page:
https://console.cloud.google.com/net-intelligence/cloud-network-insights/onboarding?project=PROJECT_ID
Verify State:
gcloud network-management network-monitoring-providers \
describe PROVIDER_ID \
--location=global \
--project=PROJECT_ID \
--format=json
Check that .state is ACTIVE. (ACTIVATING indicates the backend is
provisioning AppNeta resources.)
Delete Provider (Cleanup):
gcloud network-management network-monitoring-providers delete PROVIDER_ID \
--location=global \
--project=PROJECT_ID
Cloud Network Insights supports 7 distinct Monitoring Point deployment types:
container, helm, gce-vm, aws-ec2, azure-vm, vmware, and kvm.
monitoring-points list), see
Monitoring Point Deployment Reference.Monitoring policies configure active synthetic network and web tests executed by Monitoring Points, and alarm rules define the thresholds and evaluation windows that raise path alarms.
/api/v4/monitoringPolicy):
GET /api/v4/monitoringPolicy first
to verify whether a policy with your target name already exists before
creating a new one, avoiding duplicate resource creation and API conflicts.Once policies are configured and MPs are online, verify provisioned paths:
List Network Paths:
gcloud network-management network-monitoring-providers network-paths list \
--network-monitoring-provider=PROVIDER_ID \
--location=global \
--project=PROJECT_ID \
--format=json
List Web Paths:
gcloud network-management network-monitoring-providers web-paths list \
--network-monitoring-provider=PROVIDER_ID \
--location=global \
--project=PROJECT_ID \
--format=json
Filter by Monitoring Point: Add
--filter="sourceMonitoringPointId=MONITORING_POINT_ID" to list only paths
sourced from a specific Monitoring Point, where MONITORING_POINT_ID is the
last segment of the Monitoring Point's name in monitoring-points list.
Expected Extra Paths: Each Web policy also creates a companion
NetworkPath to the target host (unless one already exists), and a newly
deployed Monitoring Point inherits paths from existing policies whose
monitoringPointRules match it.
gcloud network-management network-monitoring-providers list --location=global --project=PROJECT_ID
to retrieve the provider ID (PROVIDER_ID). The provider ID is external
when enabled via the Google Cloud console, or a custom name if created
manually.--network-monitoring-provider=PROVIDER_ID and --location=global to
child resource commands (such as list and describe):
gcloud network-management network-monitoring-providers monitoring-points [list|describe]gcloud network-management network-monitoring-providers network-paths [list|describe]gcloud network-management network-monitoring-providers web-paths [list|describe]Alert Policies (gcloud monitoring policies): Create log-matched alert
policies (conditionMatchedLog.filter, including
alertStrategy.notificationRateLimit in POLICY_FILE) for path alarms and
operational events (see
Set up alerts and notifications).
For insights_alarm policies, include AND NOT jsonPayload.noise_conditions:* by default to filter out frequent/burst
noise unless the user asks to include noisy alarms. Always set
"userLabels": {"cloud-network-insights": "true"} in POLICY_FILE so the
policy appears in the Cloud Network Insights alert policies view in the
Google Cloud console:
# Create an alert policy from a JSON or YAML file
gcloud monitoring policies create --project=PROJECT_ID \
--policy-from-file=POLICY_FILE
# Delete an alert policy (for cleanup)
gcloud monitoring policies delete POLICY_ID \
--project=PROJECT_ID \
--quiet
Example conditionMatchedLog.filter values for Google Cloud console alert
templates:
Network Path Outage / Extended Loss / DNS Errors:
resource.type = "networkmanagement.googleapis.com/NetworkPath" AND logName =~ "insights_alarm" AND (jsonPayload.alarm_severity = "MAJOR" OR jsonPayload.alarm_severity = "CRITICAL") AND jsonPayload.state = "RAISED" AND jsonPayload.alarm_type =~ "QUALITY_OF_SERVICE" AND jsonPayload.rule =~ "Outage" AND NOT jsonPayload.noise_conditions:*
(Substitute jsonPayload.rule =~ "Extended loss" or "Multiple DNS errors" with alarm_severity = "MINOR" as needed.)
Web Path Multiple Web Errors:
resource.type = "networkmanagement.googleapis.com/WebPath" AND logName =~ "insights_alarm" AND jsonPayload.alarm_severity = "MAJOR" AND jsonPayload.state = "RAISED" AND jsonPayload.alarm_type =~ "QUALITY_OF_SERVICE" AND jsonPayload.rule =~ "Multiple Web errors" AND NOT jsonPayload.noise_conditions:*
Monitoring Point Offline and Network Path MTU Change Events:
resource.type = "networkmanagement.googleapis.com/MonitoringPoint" AND logName =~ "insights_event" AND jsonPayload.event_type = "MONITORING_POINT_OFFLINE"
resource.type = "networkmanagement.googleapis.com/NetworkPath" AND logName =~ "insights_event" AND jsonPayload.event_type = "MTU_CHANGE"
Cloud Logging (gcloud logging read): Query path alarms (logName =~ "insights_alarm") and operational lifecycle events (logName =~ "insights_event") exported to Cloud Logging (see
Set up logging
for jsonPayload field schemas and event types). Because alarm state
transitions (RAISED, UPDATED, CLEARED) are logged as separate entries
sharing the same jsonPayload.alarm_id, determine currently active alarms
by checking that the latest entry for an alarm_id has not transitioned to
CLEARED.
Cloud Monitoring (REST API projects.timeSeries.list): Query path
performance metrics (NetworkPath and WebPath, filtered by
resource.labels.path_id) via GET "https://monitoring.googleapis.com/v3/projects/PROJECT_ID/timeSeries" with
Authorization: Bearer $(gcloud auth application-default print-access-token) in Cloud Monitoring (see
Monitoring metrics
and
View dashboards).
To diagnose a Monitoring Point deployment across any platform:
connectionStatus is ONLINE in
monitoring-points list (or describe) to verify the Monitoring Point is
registered and connected to Cloud Network Insights.data.na1.cni.appneta.com, content.na1.cni.appneta.com,
comms.na1.cni.appneta.com, or .p. endpoints for Private Service Connect)
against
Broadcom Firewall Configuration
and
Add Monitoring Points.For detailed guides, complete payloads, and templates:
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 /cloud-network-insights in Claude Code or $cloud-network-insights in Codex.
The description says when to use it:
Use when enabling Cloud Network Insights, deploying or troubleshooting Monitoring Points across cloud and on-premises environments, configuring Network or Web monitoring policies and AppNeta alarm rules, configuring alert policies…
Copy the cloud-network-insights 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/cloud-network-insights .claude/skills/
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 cloud-network-insights 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/cloud-network-insights .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for cloud-network-insights 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.
cloud-network-insights ships 4 files, 33.5 KB in total. Select a file to load it from GitHub.