Hello Mansi Gusain,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you would like to know how many tokens are being used up by different models in Azure OpenAI.
To breakdown your questions:
- Count Aggregation Showing 4: This typically means that there are four data points being aggregated. It doesn't directly indicate the number of tokens used but rather the number of records or events being counted.
- Active Tokens Max=0: This could indicate that there are no active tokens being used at the time of measurement. Active tokens usually refer to tokens currently in use during an ongoing session or request.
- Seeing Token Usage for Each Model: To get detailed token usage for each model, you can use the following steps:
- Metric Namespace: Select the appropriate namespace related to Azure OpenAI.
- Metric: Choose metrics like "Prompt Tokens" and "Completion Tokens" to see the tokens used for prompts and completions.
- Aggregation: Use aggregations like "Sum" to get the total number of tokens used over a period.
For more granular data, you might need to use Azure Monitor logs or Application Insights to track and analyze token usage per request. This can give you detailed insights into how each model is generating and using tokens.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.