Hi @Prevost, Ella ,
You could make use of the budget alerts presented by Andrew, or you could make use of the records that are generated in a Log Analytics Workspace (in the _LogOperation table) when the Daily Cap is reached (check the procedure here) --> even if you will see that record after the Daily Cap is reached (Detail contains "OverQuota")
Now, if you want to monitor this aspect with multiple thresholds, then you need a custom query for that:
Using the Usage Table:
Usage // this table contains details about the ammount of data ingested in each table in 1h aggregations
| where TimeGenerated >= ago(24h) // here you should be more specific (to check from the moment the daily cap is resetted
| where IsBillable == true // We exclude the free data types
| summarize sum(Quantity)/1024 //Quantity is in MB so we calculate in GB
Note: as the Usage table have details for every 1h aggregation, you might not be as precise as you might need on short intervals
Using the _BilledSize function:
search * // we get all records in the Workspace
| where TimeGenerated >= ago(24h) // here you should be more specific (to check from the moment the daily cap is resetted
| extend Size_Bytes = _BilledSize // we use the _BilledSize function to get the size of each record in
| where _IsBillable == true // we exclude the free data types
| summarize sum(Size_Bytes)/1024/1024/1024 // we calculate the size in GB
If you use any of the queries, you could then create an Azure Monitor Alert that executes this query periodically and generate an alert when the criteria is met (thresholds reached).
I hope it helps!
BR,
George Moise