-
Notifications
You must be signed in to change notification settings - Fork 0
default alert rules
CI edited this page Sep 29, 2021
·
3 revisions
These alerts are tried used as good baseline default for all matching resources.
Name | Value |
---|---|
Name | Few Server errors |
ResourceType | Microsoft.Web/Sites |
Description | Too many server errors! |
AlertValidationSteps | https://docs.microsoft.com/en-us/azure/azure-monitor/app/tutorial-runtime-exceptions#analyze-failures |
AlertFixSteps | https://github.com/by-pinja/Pinja.Azure.Alerts/blob/master/doc/WebAppFixes.md |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'Http5xx' -TimeAggregation Total -Operator GreaterThan -Threshold 5 |
Severity | Warning |
Name | Value |
---|---|
Name | Many Server errors |
ResourceType | Microsoft.Web/Sites |
Description | Way too many server errors! |
AlertValidationSteps | https://docs.microsoft.com/en-us/azure/azure-monitor/app/tutorial-runtime-exceptions#analyze-failures |
AlertFixSteps | https://github.com/by-pinja/Pinja.Azure.Alerts/blob/master/doc/WebAppFixes.md |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'Http5xx' -TimeAggregation Total -Operator GreaterThan -Threshold 100 |
Severity | Critical |
Name | Value |
---|---|
Name | CPU percentage |
ResourceType | Microsoft.Web/serverFarms |
Description | CPU Usage too high! |
AlertValidationSteps | https://docs.microsoft.com/en-us/azure/azure-monitor/app/tutorial-performance |
AlertFixSteps | https://github.com/by-pinja/Pinja.Azure.Alerts/blob/master/doc/WebAppScaling.md |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'CpuPercentage' -TimeAggregation Average -Operator GreaterThan -Threshold 80 |
Severity | Warning |
Name | Value |
---|---|
Name | Memory percentage |
ResourceType | Microsoft.Web/serverFarms |
Description | Memory Usage too high! |
AlertValidationSteps | https://docs.microsoft.com/en-us/azure/azure-monitor/app/tutorial-performance |
AlertFixSteps | https://github.com/by-pinja/Pinja.Azure.Alerts/blob/master/doc/WebAppScaling.md#scaling-apps-up |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'MemoryPercentage' -TimeAggregation Average -Operator GreaterThan -Threshold 80 |
Severity | Warning |
Name | Value |
---|---|
Name | CPU Percentage |
ResourceType | Microsoft.Sql/servers/databases |
Description | CPU Usage too high! |
AlertValidationSteps | |
AlertFixSteps | https://github.com/by-pinja/Pinja.Azure.Alerts/blob/master/doc/SqlServerTier.md |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'cpu_percent' -TimeAggregation Average -Operator GreaterThan -Threshold 80 |
Severity | Information |
Name | Value |
---|---|
Name | DTU consumption |
ResourceType | Microsoft.Sql/servers/databases |
Description | DTU consumption too high! |
AlertValidationSteps | |
AlertFixSteps | https://github.com/by-pinja/Pinja.Azure.Alerts/blob/master/doc/SqlServerTier.md |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'dtu_consumption_percent' -TimeAggregation Average -Operator GreaterThan -Threshold 80 |
Severity | Information |
Name | Value |
---|---|
Name | SQL Storage |
ResourceType | Microsoft.Sql/servers/databases |
Description | SQL storage space is getting low! |
AlertValidationSteps | |
AlertFixSteps | https://github.com/by-pinja/Pinja.Azure.Alerts/blob/master/doc/SqlServerStorageSize.md |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'storage_percent' -TimeAggregation Average -Operator GreaterThan -Threshold 80 |
Severity | Error |
Name | Value |
---|---|
Name | Server load |
ResourceType | Microsoft.Cache/Redis |
Description | Server load too high! |
AlertValidationSteps | |
AlertFixSteps | |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'serverLoad' -TimeAggregation Average -Operator GreaterThan -Threshold 80 |
Severity | Information |
Name | Value |
---|---|
Name | Server memory |
ResourceType | Microsoft.Cache/Redis |
Description | Server memory percentace too high! |
AlertValidationSteps | |
AlertFixSteps | |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'usedmemorypercentage' -TimeAggregation Average -Operator GreaterThan -Threshold 80 |
Severity | Information |
Name | Value |
---|---|
Name | Redis processor |
ResourceType | Microsoft.Cache/Redis |
Description | Redis processor load too high! |
AlertValidationSteps | |
AlertFixSteps | |
Criteria | New-AzMetricAlertRuleV2Criteria -MetricName 'percentProcessorTime' -TimeAggregation Average -Operator GreaterThan -Threshold 80 |
Severity | Information |
Name | Value |
---|---|
Name | Availability percent |
ResourceType | Microsoft.Insights/webtests |
Description | Web app didn't respond multiple times in timely manner! |
AlertValidationSteps | https://docs.microsoft.com/en-us/azure/azure-monitor/app/tutorial-runtime-exceptions#analyze-failures |
AlertFixSteps | https://github.com/by-pinja/Pinja.Azure.Alerts/blob/master/doc/WebAppFixes.md |
Criteria | New-AzMetricAlertRuleV2DimensionSelection -DimensionName "availabilityResult/name" -ValuesToInclude $($_.Name) New-AzMetricAlertRuleV2Criteria -MetricName "availabilityResults/availabilityPercentage" -TimeAggregation Average -Operator LessThan -Threshold 90 |
Severity | Critical |