TDTech Digest

142. Agents 모니터링 (Monitor Agents)

  • 원문: English
  • 위치: Security, Guardrails, and Observability › Observability › Monitor features › Monitor Agents

한 줄 요약

Bedrock Agents 지표는 CloudWatch 네임스페이스 AWS/Bedrock/Agents 에 게시되며, 에이전트 호출 자체와 에이전트가 내부에서 호출한 모델 호출을 따로 볼 수 있습니다.

핵심 내용

지표

구분지표설명
에이전트 호출InvocationCountAPI 요청 수
TotalTime (ms)서버 처리 시간
TTFT (ms)첫 토큰까지 시간. InvokeAgent/InvokeInlineAgent에 스트리밍 설정 시만
InvocationThrottles, InvocationServerErrors, InvocationClientErrors스로틀·오류 (스로틀과 기타 오류는 호출·오류 수에 안 셈)
내부 모델 호출ModelLatency (ms)모델 지연
ModelInvocationCount에이전트가 모델에 보낸 요청 수
ModelInvocationThrottles, ModelInvocationClientErrors, ModelInvocationServerErrors모델 호출 스로틀·오류
InputTokenCount, OutputTokenCount입력/출력 토큰 수

차원

차원적용
Operation (InvokeAgent, InvokeInlineAgent)모든 지표
Operation, ModelIdTotalTime과 모델 관련 지표
Operation, AgentAliasArn, ModelId모든 지표 (에이전트 별칭별)

지표가 안 보일 때

  • 에이전트 생성 시 쓴 IAM 서비스 역할에 아래 권한이 있어야 합니다.
{
  "Effect": "Allow",
  "Resource": "*",
  "Action": "cloudwatch:PutMetricData",
  "Condition": { "StringEquals": { "cloudwatch:namespace": "AWS/Bedrock/Agents" } }
}
  • ⚠️ CloudWatch가 수집 데이터를 서비스 개선에 쓰지 않길 원하면 AWS Organizations의 AI 서비스 옵트아웃 정책을 만드세요.

📝 원문 확인 필요: 지표 표에는 outputTokenCount(소문자 o), 차원 표에는 OutputTokenCount, ModelInvocationCLientErrors로 표기가 섞여 있습니다.

SA 관점

  • 💡 에이전트 응답이 느릴 때 TotalTime과 ModelLatency, ModelInvocationCount를 비교하면 모델 자체가 느린지, 모델 호출(추론 단계) 횟수가 많은지 구분할 수 있습니다.
  • Agents 문서 참고.