Skip to content
FunCoding

aws-cloud-monitoring

AWS CloudWatch monitoring — metrics, alarms, log queries, VPC flow log analysis, network performance. Use when checking AWS alarms, analyzing VPC flow logs, investigating network latency, or monitoring VPN and NAT Gateway metrics.

Star
740
Category
Ops & cloud
License
Apache-2.0
Last commit
Dec 2, 2026

workspace/skills/aws-cloud-monitoring/SKILL.md

View on GitHub

AWS Cloud Monitoring

MCP Server

  • Command: uvx awslabs.cloudwatch-mcp-server@latest (stdio transport)
  • Requires: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION (or AWS_PROFILE)

Key Capabilities

  • Metrics: Query CloudWatch metrics for any AWS service (EC2, ELB, TGW, NAT GW, VPN)
  • Alarms: List and inspect CloudWatch alarms and their states
  • Logs: Run CloudWatch Logs Insights queries across any log group
  • Flow Logs: Analyze VPC and TGW flow logs for traffic patterns and dropped connections

Workflow: Network Monitoring Dashboard

When a user asks "how is our AWS network performing?":

  1. Check alarms: List CloudWatch alarms in ALARM state
  2. VPN metrics: Tunnel state, bytes in/out for site-to-site VPNs
  3. NAT Gateway metrics: Active connections, packets dropped, bytes processed
  4. Transit Gateway metrics: Bytes in/out, packets dropped per attachment
  5. ELB metrics: Healthy/unhealthy targets, latency, 5xx errors
  6. Report: Network health dashboard with any issues flagged

Workflow: Flow Log Analysis

When investigating traffic patterns or security events:

  1. Query VPC flow logs: Filter by source IP, destination IP, port, action (ACCEPT/REJECT)
  2. Identify rejected traffic: Find REJECT entries to see blocked connections
  3. Top talkers: Aggregate by source/destination to find heaviest traffic flows
  4. Time correlation: Narrow to specific time windows around incidents
  5. Report: Traffic analysis with recommendations

Common CloudWatch Network Metrics

ServiceMetricWhat It Tells You
VPNTunnelState0=down, 1=up for each tunnel
VPNTunnelDataIn/OutBytes through each VPN tunnel
NAT GWActiveConnectionCountActive NAT connections
NAT GWPacketsDropCountPackets dropped (capacity issue)
NAT GWBytesProcessedTraffic volume through NAT
TGWBytesIn/BytesOutTraffic per TGW attachment
TGWPacketDropCountBlackholeBlackhole route drops
ELBHealthyHostCountHealthy targets behind ALB/NLB
ELBTargetResponseTimeBackend latency
EC2NetworkIn/NetworkOutInstance network throughput
EC2NetworkPacketsIn/OutInstance packet rate

Flow Log Query Examples

# Top rejected connections in last hour
fields @timestamp, srcAddr, dstAddr, dstPort, action
| filter action = "REJECT"
| stats count() as rejections by srcAddr, dstAddr, dstPort
| sort rejections desc
| limit 20

# Traffic from specific source
fields @timestamp, srcAddr, dstAddr, dstPort, bytes, action
| filter srcAddr = "10.0.1.50"
| sort @timestamp desc

# Top talkers by bytes
fields srcAddr, dstAddr, bytes
| stats sum(bytes) as totalBytes by srcAddr, dstAddr
| sort totalBytes desc
| limit 10

Important Rules

  • CloudWatch Logs Insights queries have a cost — be mindful of time range and data volume
  • Region-specific — metrics and logs are scoped to the configured region
  • Record in GAIT — log monitoring investigations for audit trail

Environment Variables

  • AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION (or AWS_PROFILE)

Failure Behavior

  • On a tool error (timeout, unreachable host, malformed response), report the failure and its error message directly to the user rather than fabricating or guessing at results.
  • For a confirmed read-only call, check connectivity and retry once if appropriate. For any call that changes state or sends a message, a timeout does not prove the action failed: inspect current state or delivery status before retrying, preserve the required approval/change gates, and do not repeat an action whose outcome is unknown.

Similar Skills

Featured

internal-comms

Write internal communications following company formats, including status reports, leadership updates, and newsletters.

ANanthropics/skills203k3,265 new stars in the last 7 days

canary

GAgarrytan/gstack143k598 new stars in the last 7 days

Featured

shipping-and-launch

A pre-launch checklist covering monitoring, staged rollouts and rollback plans.

ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days

observability-and-instrumentation

ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days

paperclip-board

PApaperclipai/paperclip119k1,966 new stars in the last 7 days

ruview-configure

RUruvnet/RuView106k739 new stars in the last 7 days