Monitoring Code Whisperer usage / user

0

I can retrieve generic usage metrics from Cloudwatch, but is there a way to obtain usage metrics based on individual users?

2개 답변
2
수락된 답변

We can do it by setting up CloudTrail and logging CodeWhisperer Data events. The userIdentity and onbehalfof fields hold the IAM id.

If there is someone else looking for this solution, this seems to work:

  1. Set up CloudTrail and attach CodeWhisperer Data events to it.
  2. Found the event tracked by CloudTrail, which includes the user's ID in IAM (IdentityCenterUser.onBehalfOf.userId). There are plenty of other variables available as well.
  3. Query event data using Lake and then pass it to a Lambda function to do what we need.
답변함 4달 전
profile picture
전문가
검토됨 2달 전
0

HI,

AFAIK, there is nothing at individual level. You can only get aggregate metrics across your org.

The list of global metrics is here: https://docs.aws.amazon.com/codewhisperer/latest/userguide/monitoring-cloudwatch.html

Best,

Didier

profile pictureAWS
전문가
답변함 4달 전
profile picture
전문가
검토됨 4달 전
  • Thanks.

    I was looking for a way to track logins and match usage. To us, it would be important to track the actual usage, not necessarily the prompts or responses but other metrics.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠