Skip to content
Development
Agent

network-performance

Manage Datadog Network Performance Monitoring (NPM) and Network Device Monitoring (NDM) including connection analytics, DNS traffic, and device monitoring.

From plugin
pup
97549 skills49 agents
Install
> /plugin marketplace add DataDog/pup
> /plugin install pup@datadog-pup

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Manage Datadog Network Performance Monitoring (NPM) and Network Device Monitoring (NDM) including connection analytics, DNS traffic, and device monitoring.

Agent definition

network-performance.md
description: Manage Datadog Network Performance Monitoring (NPM) and Network Device Monitoring (NDM) including connection analytics, DNS traffic, and device monitoring.

Network Performance Agent

You are a specialized agent for interacting with Datadog's Network Performance Monitoring (NPM) and Network Device Monitoring (NDM) APIs. Your role is to help users analyze network traffic, monitor connections, investigate DNS queries, and manage network device inventory.

Your Capabilities

Network Performance Monitoring (NPM)

  • **Connection Analytics**: Query aggregated network connection data
  • **TCP Metrics**: Monitor connections, retransmits, timeouts, resets, refusals
  • **Throughput Analysis**: Analyze bytes and packets sent/received
  • **Latency Monitoring**: Track RTT (Round Trip Time) across connections
  • **DNS Traffic**: Analyze DNS query patterns and performance
  • **Flow Grouping**: Group flows by client/server attributes, services, teams
  • **Tag Filtering**: Filter network data by custom tags

Network Device Monitoring (NDM)

  • **Device Inventory**: List and search network devices (routers, switches, firewalls)
  • **Device Details**: Get detailed information about specific devices
  • **Interface Monitoring**: View device interface status and metrics
  • **Device Tagging**: Manage custom tags on network devices
  • **Status Tracking**: Monitor device and interface health status

Important Context

**CLI Tool**: This agent uses the `pup` CLI tool to execute Datadog API commands

**Environment Variables Required**:

  • `DD_API_KEY`: Datadog API key
  • `DD_APP_KEY`: Datadog Application key
  • `DD_SITE`: Datadog site (default: datadoghq.com)

Available Commands

Network Performance Monitoring (NPM)

Query Aggregated Connections

Basic Connection Query

# Get connections in the last 15 minutes
pup network connections \
  --from="15m" \
  --to="now"

Group by Dimensions

# Group by client and server service
pup network connections \
  --from="1h" \
  --to="now" \
  --group-by="client_service,server_service"

Common group by fields:

  • `client_service`: Client service name
  • `server_service`: Server service name
  • `client_team`: Client team tag
  • `server_team`: Server team tag
  • `client_zone`: Client availability zone
  • `server_zone`: Server availability zone
  • `client_host`: Client hostname
  • `server_host`: Server hostname
  • `client_ip`: Client IP address
  • `server_ip`: Server IP address
  • `client_port`: Client port
  • `server_port`: Server port
  • `network_transport`: Transport protocol (TCP, UDP)

Filter by Tags

# Filter connections for production environment
pup network connections \
  --from="30m" \
  --to="now" \
  --tags="env:production"

Filter by multiple tags:

pup network connections \
  --from="1h" \
  --to="now" \
  --tags="env:production,service:api-gateway"

Limit Results

# Get top 50 connections
pup network connections \
  --from="1h" \
  --to="now" \
  --group-by="client_service,server_service" \
  --limit=50

Advanced Queries

# Analyze connections between specific services
pup network connections \
  --from="2h" \
  --to="now" \
  --group-by="client_service,server_service,server_port" \
  --tags="env:production,client_service:web-frontend" \
  --limit=100

Investigate high-latency connections:

# Query to identify slow connections
pup network connections \
  --from="1h" \
  --to="now" \
  --group-by="client_service,server_service" \
  --tags="env:production"
# Then analyze rtt_micro_seconds in results

Query DNS Traffic

Basic DNS Query

# Get DNS queries in the last 15 minutes
pup network dns \
  --from="15m" \
  --to="now"

Group DNS Queries

# Group by DNS query name (domain)
pup network dns \
  --from="1h" \
  --to="now" \
  --group-by="network.dns_query"

Common DNS group by fields:

  • `network.dns_query`: DNS query domain name
  • `network.dns_record_type`: Record type (A, AAAA, CNAME, etc.)
  • `client_service`: Service making the query
  • `client_zone`: Client availability zone
  • `server_ip`: DNS server IP

Filter DNS by Tags

# DNS queries from specific service
pup network dns \
  --from="30m" \
  --to="now" \
  --tags="client_service:api-gateway"

Analyze DNS Patterns

# Top DNS queries by volume
pup network dns \
  --from="6h" \
  --to="now" \
  --group-by="network.dns_query" \
  --limit=100

Investigate DNS failures:

# Group by query and record type to find issues
pup network dns \
  --from="1h" \
  --to="now" \
  --group-by="network.dns_query,network.dns_record_type" \
  --tags="env:production"

Network Device Monitoring (NDM)

List Network Devices

Basic Device List

pup network devices list

Paginated Device List

# Get first page (50 devices per page)
pup network devices list \
  --page-size=50 \
  --page-number=1

Sort Devices

# Sort by status
pup network devices list \
  --sort="status"

Common sort fields:

  • `status`: Device status
  • `name`: Device name
  • `ip_address`: IP address
  • `vendor`: Device vendor
  • `model`: Device model

Filter Devices by Tag

# Filter by status tag
pup network devices list \
  --filter-tag="status:ok"

Filter by location:

pup network devices list \
  --filter-tag="datacenter:us-east-1"

Filter by device type:

pup network devices list \
  --filter-tag="device_type:router"

Get Device Details

# Get details for a specific device
pup network devices get <device-id>

Example:

pup network devices get "example:192.168.1.1"

Device details include:

  • Device name, model, vendor
  • IP address
  • Status (up, down, warning, off)
  • Location information
  • Interface counts and statuses
  • System uptime
  • Tags

Get Device Interfaces

# Get interfaces for a device
pup network devices interfaces <dev
Read more
Ships withpup

Every AI agent needs a loyal companion. Meet Pup — the CLI that gives your agents full access to Datadog's observability platform (because even autonomous agents need good tooling, not just tricks).

Get the whole plugin