Hi Astap Kuryan,
Greetings & Welcome to the Microsoft Q&A forum! Thank you for sharing your query.
I'm sorry to hear you're experiencing issues with monitoring token usage metrics in your Azure OpenAI integration.
Here are some steps and considerations that might help resolve the issue:
Ensure Diagnostic Settings Configuration is enabled for your Azure OpenAI resource and includes relevant metrics like "Processed Inference Tokens" in the logs.
Leverage Log Analytics Integration by connecting your Azure OpenAI resource to Log Analytics. This allows you to capture detailed logs and use custom queries to track token usage.
Implement API-Level Monitoring by capturing request and response payloads when using the API and calculating token usage locally using OpenAI’s token estimation methods.
I hope this information helps.