Monitoring

Agent Bill

Use Amazon CloudWatch Logs and Metrics:

  • Enable logging on the Bedrock Agent via Agent Action Group logging (you can configure CloudWatch log groups during setup).

  • Capture:

    • Number of invocations

    • Success/failure rates

    • Latency per action

    • Tokens used per invocation

MCP Server on Lambda

  • Monitor:

    • Duration and cold starts

    • Error rates (5XX, 4XX)

    • Concurrency limits

  • Add structured logs via console.log(JSON.stringify({ event, result, error })) to make it searchable.

Last updated