Skip to main content

v1.4.0 — AgentCore Dashboard + CloudWatch Metrics Integration

· 3 min read

This release adds a new AgentCore Dashboard page, CloudWatch metrics tables for 4 services, and Resource Inventory (PR #1).

Key Additions

AgentCore Dashboard · Sign Out · 4 CloudWatch Metrics APIs · Resource Inventory · S3 Bucket Map

AgentCore Dashboard (/agentcore)

A dedicated dashboard for monitoring the status of Bedrock AgentCore Runtime and all 8 Gateways at a glance.

  • Runtime Status: Queries status using agentRuntimeArn from data/config.json
  • 8 Gateway Cards: Shows each Gateway's status, tool count, and key features
  • Full 125 Tool List: Supports search and per-Gateway filtering
  • Architecture Diagram: Visualizes Runtime → Gateway → Lambda relationships
API Endpoint

/api/agentcore (src/app/api/agentcore/route.ts) reads ARNs from data/config.json and queries status via AWS API. With no hardcoded account info, it works in any environment by just changing the config.

Sign Out

Added a logout button to the Header for safely terminating Cognito sessions.

ItemBeforeAfter
LogoutNot possible (only closing browser)Header logout button
Cookie Deletiondocument.cookie (can't access HttpOnly)POST /api/auth server-side deletion
Auth StateDepends on browser cacheForces Cognito re-authentication
HttpOnly Cookie Deletion

document.cookie cannot delete HttpOnly cookies. You must use a server-side API (src/app/api/auth/route.ts) to return Set-Cookie: token=; Max-Age=0.

CloudWatch Metrics Tables (4 Services)

Added dedicated API routes and CloudWatch metrics tables for 4 services. All follow the same pattern (cloudwatch get-metric-data → progress bar + numeric values).

ServiceAPI RouteMetrics
MSK/api/mskPer-broker CPU, Memory, BytesIn, BytesOut
RDS/api/rdsPer-instance CPU, Memory, Connections, IOPS
ElastiCache/api/elasticachePer-node CPU, Memory, Network, Connections + Valkey engine card
OpenSearch/api/opensearchPer-domain CPU, JVM Memory, Cluster Status, Search Rate

Resource Inventory (PR #1)

Monitor quantity trends for 18 resource types on the /inventory page.

  • Multi-line Chart: Time series of resource quantity changes
  • Cost Impact Estimation: Estimated cost based on resource changes
  • src/lib/resource-inventory.ts: Snapshot-based (data/inventory/), zero additional queries
  • Cost Explorer Availability: Automatic MSP Payer detection via checkCostAvailability()

S3 / RDS / ElastiCache Enhancements

ServiceAdded Features
S3Bucket Map (TreeMap visualization), search/filter, IAM Roles display
RDSSecurity Groups tab, CloudWatch mini charts, Features details
ElastiCacheSecurity Groups tab, CloudWatch metrics, Valkey engine support

Monitoring Enhancements

  • Instance Detailed Metrics View: Date Range selection (1h ~ 30d)
  • Resource Topology: Graph/Map View toggle (React Flow)