- name: VipAvailability
  description: Average Load Balancer data path availability per time duration
  type: Metric
  verified: true
  visible: true
  tags:
  - alz
  properties:
    metricName: VipAvailability
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 0
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: LessThan
    threshold: 90
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  references:
  - name: Azure Monitor supported metrics by resource type - Azure Load Balancer
    url: https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-network-loadbalancers-metrics
  - name: Azure Load Balancer Multi-Demensional-Metrics
    url: https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-diagnostics#multi-dimensional-metrics
  - name: Is The Data Path Up and Available for My Load-Balancer
    url: https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-diagnostics#is-the-data-path-up-and-available-for-my-load-balancer-frontend
  deployments:
  - name: Deploy ALB Data Path Availability Alert
    template: Deploy-LB-DatapathAvailability-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  guid: b239797f-e627-4e48-8609-94db72098c3d
- name: GlobalBackendAvailability
  description: Metric Alert for Global Backend Availability
  type: Metric
  verified: false
  visible: true
  tags:
  - alz
  properties:
    metricName: GlobalBackendAvailability
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 0
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: LessThan
    threshold: 90
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  references:
  - name: Azure Monitor supported metrics by resource type - Azure Load Balancer
    url: https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-network-loadbalancers-metrics
  deployments:
  - name: Deploy ALB Global Backend Availability Alert
    template: Deploy-LB-GlobalBackendAvailability-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  guid: 055c20da-0d21-4c6a-a80b-f2c4b3887804
- name: DipAvailability
  description: Average Load Balancer health probe status per time duration
  type: Metric
  verified: true
  visible: true
  tags:
  - alz
  properties:
    metricName: DipAvailability
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 0
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: LessThan
    threshold: 90
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  references:
  - name: Azure Monitor supported metrics by resource type - Azure Load Balancer
    url: https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-network-loadbalancers-metrics
  - name: Are Backend Instances for my Load-Balancer Responding to Probes
    url: https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-diagnostics#are-the-backend-instances-for-my-load-balancer-responding-to-probes
  deployments:
  - name: Deploy ALB Health Probe Status Alert
    template: Deploy-LB-HealthProbeStatus-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  guid: a39efd3b-04ef-48d4-a862-053092bdd6e5
- name: UsedSNATPorts
  description: Metric Alert for ALB Used SNAT Ports
  type: Metric
  verified: true
  visible: true
  tags:
  - alz
  properties:
    metricName: UsedSNATPorts
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    threshold: 900
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  references:
  - name: Azure Monitor supported metrics by resource type - Azure Load Balancer
    url: https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-network-loadbalancers-metrics
  - name: Load-Balancer Alerts
    url: https://learn.microsoft.com/en-us/azure/load-balancer/monitor-load-balancer#alerts
  - name: Check My SNAT Port Usage and Allocation
    url: https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-diagnostics#how-do-i-check-my-snat-port-usage-and-allocation
  deployments:
  - name: Deploy ALB Used SNAT Ports Alert
    template: Deploy-LB-UsedSNATPorts-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  guid: a92cb746-f19f-450b-b413-8b9710b0176b
- name: SnatConnectionCount
  description: Total number of new SNAT connections created within time period
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-3226
  properties:
    metricName: SnatConnectionCount
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT5M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    dimensions:
    - operator: include
      name: connectionstate
      values:
      - failed
    threshold: 0.0
    autoMitigate: false
    enabled: true
  guid: 39d3123b-daaa-4f70-97a3-8a4f326104af
- name: Byte Count
  description: Total number of bytes passing through load balancer
  type: Metric
  verified: false
  visible: false
  properties:
    metricName: Bytecount
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  guid: d15179b2-4b57-41e4-997b-dc7c380963d9
- name: PacketCount
  description: total number of packet passing through load balancer
  type: Metric
  verified: false
  visible: false
  properties:
    metricName: PacketCount
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  guid: d766dc3e-42cc-42a7-ba4f-3c1d7fa295c5
- name: AllocatedSnatPorts
  description: total number of port allocated for SNAT
  type: Metric
  verified: false
  visible: false
  properties:
    metricName: AllocatedSnatPorts
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  guid: 5b64d91c-54de-4f8c-a5d6-054967f4ceaf
- name: SYNCount
  description: number of syn packet which represent an attempt to establish tcp connection.
  type: Metric
  verified: false
  visible: false
  properties:
    metricName: SYNCount
    metricNamespace: Microsoft.Network/loadBalancers
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  guid: 94c90db6-8fd7-460c-b704-c2a429913376
