Skip to content

Commit

Permalink
Merge pull request #200 from JoeyBarnes/main
Browse files Browse the repository at this point in the history
Fixed a typo in Dynamic alert configuration
  • Loading branch information
judyer28 authored Apr 23, 2024
2 parents db1ba0e + 2a9be41 commit 0ad5e1c
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions services/ContainerInstance/containerGroups/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
- '*'
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
- name: MemoryUsage
description: Total memory usage in byte.
Expand All @@ -48,7 +48,7 @@
- '*'
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
- name: NetworkBytesReceivedPerSecond
description: The network bytes received per second.
Expand All @@ -69,7 +69,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
- name: NetworkBytesTransmittedPerSecond
description: The network bytes transmitted per second.
Expand All @@ -90,5 +90,5 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
6 changes: 3 additions & 3 deletions services/Logic/workflows/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
references:
- name: Monitor workflow run status, review trigger and workflow run history, and
Expand All @@ -200,7 +200,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
references:
- name: Monitor workflow run status, review trigger and workflow run history, and
Expand Down Expand Up @@ -401,5 +401,5 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Medium
2 changes: 1 addition & 1 deletion services/Network/dnszones/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
8 changes: 4 additions & 4 deletions services/Network/virtualNetworkGateways/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Medium
- name: TunnelIngressPacketDropCount
description: Count of incoming packets dropped by tunnel
Expand All @@ -374,7 +374,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Medium
- name: TunnelIngressBytes
description: Incoming bytes of a tunnel
Expand Down Expand Up @@ -413,7 +413,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Medium
- name: TunnelIngressPacketDropTSMismatch
description: Incoming packet drop count from traffic selector mismatch of a tunnel
Expand All @@ -434,5 +434,5 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Medium
8 changes: 4 additions & 4 deletions services/OperationalInsights/workspaces/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
- '*'
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 3
alertSensitivity: Medium
- name: Average_Bytes Received/sec
description: 'Average_Bytes Received/sec. Supported for: Windows. Part of [metric
Expand Down Expand Up @@ -515,7 +515,7 @@
- '*'
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 3
alertSensitivity: Medium
- name: Average_Total Bytes Transmitted
description: 'Average_Total Bytes Transmitted. Supported for: Linux. Part of [metric
Expand Down Expand Up @@ -554,7 +554,7 @@
- '*'
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 3
alertSensitivity: Medium
- name: Average_Total Bytes Received
description: 'Average_Total Bytes Received. Supported for: Linux. Part of [metric
Expand Down Expand Up @@ -593,7 +593,7 @@
- '*'
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 3
alertSensitivity: Medium
- name: Event
description: 'Event. Supported for: Windows. Part of [metric alerts for logs feature](https://aka.ms/am-log-to-metric).'
Expand Down
2 changes: 1 addition & 1 deletion services/Sql/servers/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 5
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 5
alertSensitivity: Low
references:
- name: Monitor Azure SQL Database with metrics and alerts
Expand Down
2 changes: 1 addition & 1 deletion services/Web/serverFarms/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
- name: TcpEstablished
description: The average number of sockets in ESTABLISHED state across all the instances
Expand Down
4 changes: 2 additions & 2 deletions services/Web/sites/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
references:
- name: Understand App Service Metrics
Expand Down Expand Up @@ -426,7 +426,7 @@
criterionType: DynamicThresholdCriterion
failingPeriods:
numberOfEvaluationPeriods: 4
minFailingPeroidsToAlert: minFailingPeroidsToAlert
minFailingPeriodsToAlert: 4
alertSensitivity: Low
references:
- name: Understand App Service Metrics
Expand Down
2 changes: 1 addition & 1 deletion tooling/query-metrics-alerts/analysis_query.kql
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ rulesExpanded
(
resourceTypes
) on resourceType
| extend failingPeriods = iif(criterionType =~ "DynamicThresholdCriterion", bag_pack("numberOfEvaluationPeriods", numberOfEvaluationPeriods, "minFailingPeriodsToAlert", "minFailingPeriodsToAlert"), "")
| extend failingPeriods = iif(criterionType =~ "DynamicThresholdCriterion", bag_pack("numberOfEvaluationPeriods", numberOfEvaluationPeriods, "minFailingPeriodsToAlert", minFailingPeriodsToAlert), "")
| project resourceType, numRulesRt, metricName, numRules, operator, timeAggregation, criterionType, frequency, windowSize, severity, dimensions, threshold, alertSensitivity, failingPeriods
| order by resourceType asc, numRules desc

0 comments on commit 0ad5e1c

Please sign in to comment.