Alert signals for open ai

Andrew J 20 Reputation points
2024-01-10T15:20:24.8333333+00:00

Hi everyone

I have open ai account setup in cognitive services, then I have created a deployment for gpt-4 to use it later, since I am not sure what load I would get there, I would like to set token limit value to be low. Then I want to set up an alert for 429 status code to be aware when throttling happens in order to increase tokens limit. I found 1 metric which is responsible for that: BlockedCalls in cognitiveservices namespace. It works fine for me: I have alert set up and tried to throttle api with requests and alert was triggered just fine. The only part I do not understand is the description of the signal itself. It says: do not use for azure open ai service. What exactly does that mean? since it works for me. And if I should not use it, whats the better way to alert on throttling?

Thanks for your help in advance!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,080 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,599 questions
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 29,261 Reputation points
    2024-01-11T09:35:17.03+00:00

    @Andrew J Thanks for reaching out. Yes, that's correct. The recommended way to monitor throttling for Azure OpenAI services is to use custom logging and metrics. You can configure your Azure OpenAI service to log all requests and responses, including any 429 responses due to throttling. You can then use Azure Monitor to create a custom metric that tracks the number of 429 responses over a given time period. You can configure an alert rule to trigger when the number of 429 responses exceeds a certain threshold. Reference: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/monitoring#configure-diagnostic-settings https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/monitoring#set-up-alerts

    do let me know incase of further queries, I would be happy to assist you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.