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?

demandé il y a 4 mois647 vues
2 réponses
2
Réponse acceptée

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.
répondu il y a 3 mois
profile picture
EXPERT
vérifié il y a 2 mois
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
EXPERT
répondu il y a 4 mois
profile picture
EXPERT
vérifié il y a 3 mois
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions