- name: Backend Last Byte Response Time
  description: Time interval between start of establishing a connection to backend
    server and receiving the last byte of the response body
  type: Metric
  verified: false
  visible: true
  tags:
  - alz
  properties:
    metricName: BackendLastByteResponseTime
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: DynamicThresholdCriterion
    alertSensitivity: Medium
    failingPeriods:
      numberOfEvaluationPeriods: 2
      minFailingPeriodsToAlert: 2
    autoMitigate: false
    enabled: true
  deployments:
  - name: Deploy Azure Application Gateway BackendLastByteResponseTime Alert
    template: Deploy-AGW-BackendLastByteResponseTime-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  references:
  - name: Monitoring Azure Application Gateway data reference
    url: https://learn.microsoft.com/azure/application-gateway/monitor-application-gateway-reference
  - name: Metrics for Application Gateway
    url: https://learn.microsoft.com/azure/application-gateway/application-gateway-metrics
  - name: Monitoring Azure Application Gateway
    url: https://learn.microsoft.com/azure/application-gateway/monitor-application-gateway
  guid: 57c7b576-d4b2-4aa7-8c58-5c0ccbf94726
- name: UnhealthyHostCount
  description: Number of unhealthy backend hosts
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-12269
  properties:
    metricName: UnhealthyHostCount
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 0.0
    enabled: true
  guid: c88acf4e-2d23-4ac7-93fb-e44ded53ecee
- name: FailedRequests
  description: Count of failed requests that Application Gateway has served
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-5684
  properties:
    metricName: FailedRequests
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 10.0
    enabled: true
  guid: 73afde26-bd0c-4c31-8801-5b2444629448
- name: HealthyHostCount
  description: Number of healthy backend hosts
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-4212
  properties:
    metricName: HealthyHostCount
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: LessThan
    criterionType: StaticThresholdCriterion
    threshold: 1.0
    enabled: true
  guid: f03d1a7a-6bd3-42ae-89db-b36fd6ce5633
- name: ResponseStatus
  description: Http response status returned by Application Gateway
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-2218
  properties:
    metricName: ResponseStatus
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    dimensions:
    - operator: include
      name: httpstatusgroup
      values:
      - 5xx
    threshold: 10.0
    enabled: true
  guid: 6d77d848-23b1-4ff4-b9de-d421845d9566
- name: ApplicationGatewayTotalTime
  description: Time that it takes for a request to be processed and its response to
    be sent. This is the interval from the time when Application Gateway receives
    the first byte of an HTTP request to the time when the response send operation
    finishes. It's important to note that this usually includes the Application Gateway
    processing time, time that the request and response packets are traveling over
    the network and the time the backend server took to respond.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1728
  properties:
    metricName: ApplicationGatewayTotalTime
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 5000.0
    enabled: true
  guid: 73fa1878-d22d-4e8d-922d-9f146454cc40
- name: CapacityUnits
  description: Capacity Units consumed
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1673
  properties:
    metricName: CapacityUnits
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 75.0
    enabled: true
  guid: d43ca9ef-6211-40ff-972e-fffb17923fc9
- name: BackendResponseStatus
  description: The number of HTTP response codes generated by the backend members.
    This does not include any response codes generated by the Application Gateway.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1481
  properties:
    metricName: BackendResponseStatus
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    dimensions:
    - operator: include
      name: httpstatusgroup
      values:
      - 5xx
    threshold: 10.0
    enabled: true
  guid: c319a40c-3750-4fb4-a36d-beb3d09ef2ee
- name: CpuUtilization
  description: Current CPU utilization of the Application Gateway
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1234
  properties:
    metricName: CpuUtilization
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 80.0
    enabled: true
  guid: 9c8be4c5-5ba3-47ef-8a0a-97144734a336
- name: BackendConnectTime
  description: Time spent establishing a connection with a backend server
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1222
  properties:
    metricName: BackendConnectTime
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT5M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 10000.0
    enabled: true
  guid: e636b3ea-da2d-42f5-aedf-12b69432ac1f
- name: ComputeUnits
  description: Compute Units consumed
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1088
  properties:
    metricName: ComputeUnits
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 75.0
    enabled: true
  guid: e59f4d17-2600-4bcc-ab57-6c695d37a0b2
- name: Throughput
  description: Number of bytes per second the Application Gateway has served
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-687
  properties:
    metricName: Throughput
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 167772160.0
    enabled: true
  guid: 7640663c-b2f7-41bf-9419-be5e8cfdf74e
- name: TotalRequests
  description: Count of successful requests that Application Gateway has served
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-542
  properties:
    metricName: TotalRequests
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 10000.0
    enabled: true
  guid: 06982a17-4def-405d-bb59-4ecfb6486f9e
- name: CurrentConnections
  description: Count of current connections established with Application Gateway
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-522
  properties:
    metricName: CurrentConnections
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 10000.0
    enabled: true
  guid: 695b9710-e432-4521-9042-36287f0fc5ba
- name: EstimatedBilledCapacityUnits
  description: Estimated capacity units that will be charged
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-320
  properties:
    metricName: EstimatedBilledCapacityUnits
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 2
    windowSize: PT30M
    evaluationFrequency: PT15M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 20.0
    enabled: true
  guid: e77b6820-e115-4e33-97c1-9bb902eec3b2
- name: AzwafSecRule
  description: Matched Managed Rules
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-311
  properties:
    metricName: AzwafSecRule
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 75.0
    enabled: true
  guid: d5827f03-efb6-4257-96e2-b6e34e3bef7e
- name: BackendFirstByteResponseTime
  description: Time interval between start of establishing a connection to backend
    server and receiving the first byte of the response header, approximating processing
    time of backend server
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-270
  properties:
    metricName: BackendFirstByteResponseTime
    metricNamespace: Microsoft.Network/applicationGateways
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 2000.0
    enabled: true
  guid: 3cbcad15-0bb6-423e-87c1-4d40722103d6
