diff --git a/infrastructure/templates/public-api/application/shared/appGateway.bicep b/infrastructure/templates/public-api/application/shared/appGateway.bicep index 2d85993b27..d93258d140 100644 --- a/infrastructure/templates/public-api/application/shared/appGateway.bicep +++ b/infrastructure/templates/public-api/application/shared/appGateway.bicep @@ -56,7 +56,7 @@ module appGatewayModule '../../components/appGateway.bicep' = { } module backendPoolsHealthAlert '../../components/alerts/appGateways/backendPoolHealth.bicep' = if (deployAlerts) { - name: '${resourceNames.sharedResources.appGateway}BackedPoolsHealthDeploy' + name: '${resourceNames.sharedResources.appGateway}BackendPoolsHealthDeploy' params: { resourceNames: [resourceNames.sharedResources.appGateway] alertsGroupName: resourceNames.existingResources.alertsGroup diff --git a/infrastructure/templates/public-api/components/alerts/appGateways/backendPoolHealth.bicep b/infrastructure/templates/public-api/components/alerts/appGateways/backendPoolHealth.bicep index 069e01ba90..3fabc48a21 100644 --- a/infrastructure/templates/public-api/components/alerts/appGateways/backendPoolHealth.bicep +++ b/infrastructure/templates/public-api/components/alerts/appGateways/backendPoolHealth.bicep @@ -20,7 +20,7 @@ module alerts '../staticMetricAlert.bicep' = [for name in resourceNames: { resourceType: 'Microsoft.Network/applicationGateways' query: { metric: 'UnhealthyHostCount' - aggregation: 'Average' + aggregation: 'Total' operator: 'GreaterThan' threshold: 0 } diff --git a/infrastructure/templates/public-api/components/alerts/containerApps/restarts.bicep b/infrastructure/templates/public-api/components/alerts/containerApps/restarts.bicep index a43630be58..fb79c183cf 100644 --- a/infrastructure/templates/public-api/components/alerts/containerApps/restarts.bicep +++ b/infrastructure/templates/public-api/components/alerts/containerApps/restarts.bicep @@ -20,7 +20,7 @@ module alerts '../staticMetricAlert.bicep' = [for name in resourceNames: { resourceType: 'Microsoft.App/containerApps' query: { metric: 'RestartCount' - aggregation: 'Average' + aggregation: 'Total' operator: 'GreaterThan' threshold: 0 }