ASSOCIATED DRATA CONTROL
This test is part of the System Monitoring control (DCF-86) that ensures production systems and resources are monitored and automated alerts are sent out personnel based on pre-configured rules. Events are triaged to determine if they constitute an incident and escalated per policy if necessary.
WHAT TO DO IF A TEST FAILS
If Drata finds that one or more AWS Classic Load Balancers do not have a CloudWatch metric alarm for latency configured with a subscription to an SNS topic, the test will fail.
STEPS TO REMEDIATE
For Classic Elastic Load Balancers that are failing:
Sign in to CloudWatch console.
Create an alarm by selecting 'Alarm' then 'Create alarm' from the navigation panel.
Click 'select metric' > 'ELB' (Elastic Load Balancing) > 'Per-ELB Metrics' > select the load balancer failing this test > select the 'Latency' metric.
Specify metrics and conditions for the alarm such as threshold value and period.
Choose an existing SNS topic or create a new one to subscribe to.
Give your alarm a name, review your settings, and finish creating the alarm.
Repeat for each failing Classic Elastic Load Balancer.
Why the Latency Metric Might Not Appear
The Latency metric may not appear under CloudWatch > Metrics > ELB > Per-ELB Metrics, which can prevent creating the required alarm. This happens because AWS doesn’t emit Latency metrics for Classic Load Balancers until they process at least one request. If the load balancer hasn’t handled any traffic, the Latency metric won’t show up in the CloudWatch console.
To make the Latency metric available, choose one of the following options. Do not perform both options:
Option 1: Generate Traffic
Send a test request through the Classic Load Balancer.
Wait a moment and refresh the CloudWatch metrics page.
Once CloudWatch verifies that the load balancer has handled at least one request, the Latency metric begins emitting data.
Option 2: Manually Specify the Metric
If you can’t generate test traffic, you can manually create the alarm instead.
This involves opening the CloudWatch alarm creation wizard, switching to the query editor, and entering the metric manually:
Namespace: AWS/ELB
Metric name: Latency
Dimension: LoadBalancerName
with your load balancer’s name.
This way, you set up the alarm even though the metric has not yet appeared in the metrics list because no requests have been processed.
Learn more in the CloudWatch metrics for your Classic Load Balancer documentation.