You have an Azure Cosmos DB Core (SQL) API account that has multiple write regions.
You need to receive an alert when requests that target the database exceed the available request units per second (RU/s).
Which Azure Monitor signal should you use?
You have an Azure Cosmos DB Core (SQL) API account that has multiple write regions.
You need to receive an alert when requests that target the database exceed the available request units per second (RU/s).
Which Azure Monitor signal should you use?
To receive an alert when requests that target an Azure Cosmos DB Core (SQL) API account exceed the available request units per second (RU/s), you should use the 'Total Request Units' signal. This metric monitors the total RU usage, allowing you to track and alert when a certain threshold is breached, such as exceeding the provisioned RU/s limit. This approach ensures you can respond to high demand and prevent throughput issues, maintaining optimal database performance.
I think B is the correct answer. The link provided by avocacao is about checking whether a certain amount of requests exceeded the rate limit. Reading the text on this page, I think the answer should be B. https://docs.microsoft.com/en-us/azure/cosmos-db/monitor-cosmos-db
To be more specific: https://learn.microsoft.com/en-us/azure/cosmos-db/monitor?tabs=azure-diagnostics#alerts
I think you are right, the Provisioned Throughput metric measures the number of provisioned Request Units per second (RU/s) for a Cosmos DB account, and can be used to trigger an alert when the actual usage exceeds a threshold.
Answer should be C for sure
Correct answer: Total Request Units https://learn.microsoft.com/en-us/azure/cosmos-db/create-alerts#create-an-alert-rule "Now, you can define the logic for triggering an alert and use the chart to view trends of your Azure Cosmos DB account. The Total Request Units metric supports dimensions. These dimensions allow you to filter on the metric. For example, you can use dimensions to filter to a specific database or container you want to monitor. If you don't select any dimension, this value is ignored. Choose StatusCode as the Dimension name. Select Add custom value and set the status code to 429."
https://learn.microsoft.com/en-us/azure/cosmos-db/create-alerts
TotalRequestUnits (Total Request Units) Used to monitor Total RU usage at a minute granularity. To get average RU consumed per second, use Sum aggregation at minute interval/level and divide by 60. https://learn.microsoft.com/en-us/azure/cosmos-db/monitor-reference
"Provisioned Throughput" allows you to monitor the actual consumption of the provisioned RU/s against what you've provisioned for your Cosmos DB account. You can set up alerts based on this signal to notify you when your actual RU/s consumption approaches or exceeds the provisioned RU/s, helping you manage your capacity and avoid RU/s throttling. "Total Request Units" is more about monitoring the total number of request units consumed by queries and operations over a period of time. It's useful for understanding query performance and workload trends but may not directly alert you when RU/s consumption exceeds the provisioned amount.
https://learn.microsoft.com/en-us/azure/cosmos-db/monitor?tabs=azure-diagnostics#alerts Rate limiting on request units (metric alert) -> Alerts if the container or a database has exceeded the provisioned throughput limit.
By setting up an alert for the "Provisioned Throughput" metric, you can monitor when the request units per second (RU/s) exceed the provisioned amount and receive notifications accordingly https://learn.microsoft.com/en-us/azure/cosmos-db/create-alerts
The correct answer is: C. Total Request Units Explanation: The Total Request Units signal in Azure Monitor is used to track and monitor the consumption of Request Units per second (RU/s) in Azure Cosmos DB. By setting up an alert for this signal, you can be notified when the RU/s consumption exceeds the provisioned RU/s, which might indicate that the system is throttling requests or approaching its limit. Why not the other options? A. Data Usage: This monitors the storage usage of your database and containers, not RU/s consumption. B. Provisioned Throughput: This indicates the amount of RU/s that has been provisioned, but it does not provide insight into whether your requests are exceeding this value. D. Document Count: This tracks the number of documents, not the RU/s consumption.
How to monitor throughput or request unit usage of an operation in Azure Cosmos DB? https://learn.microsoft.com/en-us/azure/cosmos-db/monitor-request-unit-usage The Total Request Units metric is used to get the request units usage for different types of operations.