云网络洞察监控运维
cloud-network-insights
为 Google Cloud 与 Broadcom AppNeta 中的 Cloud Network Insights 提供设置、接入与合成监控操作的指导和自动化。适用于启用 Cloud Network Insights,在云上与本地环境中部署或排查监控点(Monitoring Point),配置网络或 Web 监控策略与 AppNeta 告警规则,配置告警策略,查询路径告警与性能指标,或验证合成路径可达性。不用于通用网络可观测性、VPC Flow Logs、Cloud NAT 或 VPC 防火墙排查。
- License 许可
- Apache-2.0
- 所属仓库
- google/skills
- 最近更新
- 2026-11-14
- Stars
- ★ 2.4w
- Forks
- 2.0k
01 前言 Front Matter
- name
- cloud-network-insights
- metadata
- { "version": "1.0.1", "category": "Networking" }
- description
- 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.
02 资源文件 3
- 参考文档references/attribution.md1.8 KB
- 参考文档references/monitoring-point-deployment.md11.7 KB
- 参考文档references/monitoring-policies.md6.3 KB
03 SKILL.md 正文
Cloud Network Insights
Attribution
For all gcloud CLI, REST API, and MCP attribution requirements when executing
commands with this skill, follow the instructions in
Usage Attribution.
🛑 Core Directive: Results First
- Identify the Requested Task: Determine if the user is attempting service enablement, checking activation status, downloading/installing or troubleshooting Monitoring Points (MPs), configuring AppNeta monitoring policies or alarm rules, verifying provisioned resources and paths, configuring alert policies, or querying Cloud Logging alarms and Cloud Monitoring metrics.
- Execute and Present: Perform the minimum required commands or API calls to accomplish the task or provide exact guidance.
- Definitive Answers: For status and verification queries, report the
definitive state (for example,
ACTIVE,ACTIVATING, or path listings) immediately.
Overview
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.
Procedures and CUJs
1. Service Enablement and Status
-
Enable API:
gcloud services enable networkmanagement.googleapis.com --project=PROJECT_ID -
Create Provider (use
externalto match the Google Cloud console default, or a customPROVIDER_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=jsonCheck that
.stateisACTIVE. (ACTIVATINGindicates the backend is provisioning AppNeta resources.) -
Delete Provider (Cleanup):
gcloud network-management network-monitoring-providers delete PROVIDER_ID \ --location=global \ --project=PROJECT_ID
2. Monitoring Point Deployment and Verification
Cloud Network Insights supports 7 distinct Monitoring Point deployment types:
container, helm, gce-vm, aws-ec2, azure-vm, vmware, and kvm.
- Platform Selection: Never assume a default deployment type. Identify or prompt the user for their target environment before proceeding.
- Procedures and Commands: For all required parameters, download commands,
deployment manifests, and status verification commands (
monitoring-points list), see Monitoring Point Deployment Reference.
3. Monitoring Policy and Alarm Rule Configuration (AppNeta)
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.
- Policy Types (
/api/v4/monitoringPolicy):- Network Monitoring Policies: Monitor packet loss, latency, and jitter to target IPs (or dual-ended between Monitoring Points) over TCP or UDP.
- Web Monitoring Policies: Synthetic HTTP/HTTPS application checks (such as GET requests with status code 200 assertions).
- Check Before Creating: Always query
GET /api/v4/monitoringPolicyfirst to verify whether a policy with your target name already exists before creating a new one, avoiding duplicate resource creation and API conflicts. - Alarm Rules (AppNeta Web UI Only): Alarm rules are configured in the AppNeta Web UI (in Alarms > Alarm Rules; see Broadcom Alarm Rules) and are not supported via the REST API v4.
- Procedures and Payloads: For authentication token generation, organization discovery, and REST JSON payloads, see Monitoring Policy Configuration Reference.
4. Verifying Provisioned Paths in Google Cloud
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, whereMONITORING_POINT_IDis the last segment of the Monitoring Point'snameinmonitoring-points list. -
Expected Extra Paths: Each Web policy also creates a companion
NetworkPathto the target host (unless one already exists), and a newly deployed Monitoring Point inherits paths from existing policies whosemonitoringPointRulesmatch it.
5. Querying Cloud Network Insights Resources and State
- Discover the Provider Name: Run
gcloud network-management network-monitoring-providers list --location=global --project=PROJECT_IDto retrieve the provider ID (PROVIDER_ID). The provider ID isexternalwhen enabled via the Google Cloud console, or a custom name if created manually. - Query Child Resources: Pass
--network-monitoring-provider=PROVIDER_IDand--location=globalto child resource commands (such aslistanddescribe):- Monitoring Points:
gcloud network-management network-monitoring-providers monitoring-points [list|describe] - Network Paths:
gcloud network-management network-monitoring-providers network-paths [list|describe] - Web Paths:
gcloud network-management network-monitoring-providers web-paths [list|describe]
- Monitoring Points:
6. Alert Policies, Cloud Logging, and Cloud Monitoring Metrics
-
Alert Policies (
gcloud monitoring policies): Create log-matched alert policies (conditionMatchedLog.filter, includingalertStrategy.notificationRateLimitinPOLICY_FILE) for path alarms and operational events (see Set up alerts and notifications). Forinsights_alarmpolicies, includeAND 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"}inPOLICY_FILEso 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 \ --quietExample
conditionMatchedLog.filtervalues 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"withalarm_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 forjsonPayloadfield schemas and event types). Because alarm state transitions (RAISED,UPDATED,CLEARED) are logged as separate entries sharing the samejsonPayload.alarm_id, determine currently active alarms by checking that the latest entry for analarm_idhas not transitioned toCLEARED. -
Cloud Monitoring (REST API
projects.timeSeries.list): Query path performance metrics (NetworkPathandWebPath, filtered byresource.labels.path_id) viaGET "https://monitoring.googleapis.com/v3/projects/PROJECT_ID/timeSeries"withAuthorization: Bearer $(gcloud auth application-default print-access-token)in Cloud Monitoring (see Monitoring metrics and View dashboards).
7. Deployment Diagnostics and Troubleshooting
To diagnose a Monitoring Point deployment across any platform:
- Google Cloud Registration: Check that
connectionStatusisONLINEinmonitoring-points list(ordescribe) to verify the Monitoring Point is registered and connected to Cloud Network Insights. - Model-Specific Workload, Host, and Appliance Health: Inspect the Monitoring Point runtime, container/Kubernetes workload, or v35 Web Admin status on the target platform using the model-specific troubleshooting guides in Monitoring Point Deployment Reference, Broadcom Troubleshooting Monitoring Points, and Troubleshooting Cloud Network Insights.
- Network, Proxy, and Firewall Rules: Verify the target environment's
firewall, Web Proxy, custom CA certificate, and gRPC/SSL inspection bypass
settings (
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.
Reference Documentation
For detailed guides, complete payloads, and templates:
- Monitoring Point Deployment Reference: Deployment guides and command references across all 7 platforms (container, Helm, GCE VM Terraform, AWS, Azure, VMware, KVM).
- Monitoring Policy Configuration Reference: Network and Web monitoring policy JSON payloads and AppNeta API workflows.
- Google Cloud Network Insights Documentation: Official Google Cloud documentation for Cloud Network Insights setup, concepts, and operations.
- Broadcom AppNeta for Cloud Network Insights Documentation: Broadcom AppNeta monitoring points, path performance, and API guides.
04 同仓库更多 Skills
cloud-operator-share-context
Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.
cloud-operator-setup
Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.
developer-device-platform-device-run
Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.
compute-vm-creation
Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.
agent-platform-autorater-customization
Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).
iap-agent-platform-troubleshooting
Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with "Egress request is not authorized", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.