Alerts for "Max Request Units" in Cosmos DB
In the legacy alerts, there was an alert called "Maxs RUs Sec" that would trigger if we hit a certain RU count on Cosmos DB.
In the new Alerts, we cannot find a way to get the same alert setup. We only see "Total Request Units" however this does not give us what we are looking for.
Is "Maxs RUs Sec" an upcoming feature? Is there a current workaround for to get this data in an alert?
As said, you can use “Total Requests” and in the dimensions section select “StatusCode” which is “429”.
This is the alterative metric replacing “Max Request Units”, which alerts on throttling on requests.
John Wiegert commented
That isn't really the same thing, what if I wanted to alert before I got to throttles? So if I am provisioned at 10k RUs, but I want a warning alert when I hit 9k RUs, which shouldn't hit a throttle, I can't do it.
@Michael: Maybe I found the new way doing it. I create a new Alert-Rule, as condition I choose "Total Requests" (on Page 2) and then in the dimensions section I select for "StatusCode" only "429" (429 Too Many Request - The collection has exceeded the provisioned throughput limit. )
You can now configure a specific Collection if you want and set the period and frequency as well as the treshold.
I just configured it, so I have no experience if it's works properly, but it sounds very like what I have done bevor with the classic alerts.
I used the metric "Throttled Requests" (Number of requests exceeded capacity) in Classic Alerts to monitor if the provisioned throuput is to less. I think that's more or less the same purpose as to use "Max RUs Sec"
How this metric is called in the new Alerts?
It would be very helpfull if you provide some basic presets in the new Alerts section to easiely monitor the basic health of your ressource.