Amazon Elastic Load Balancing

Overview

Amazon Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances in the cloud.

Datadog collects metrics and metadata from all three flavors of Elastic Load Balancers that AWS offers: Application (ALB), Classic (ELB), and Network Load Balancers (NLB).

Enable this integration to see in Datadog all your Elastic Load Balancing metrics.

Note: This integration requires the permissions ’ec2:describe**’ and ’elasticloadbalancing:describe*’ to be fully enabled.

Setup

Installation

If you haven’t already, set up the Amazon Web Services integration first.

Metric collection

  1. In the AWS integration page, ensure that ApplicationELB, ELB, and NetworkELB are enabled under the Metric Collection tab.
  2. Install the Datadog - Amazon ELB integration.

Log collection

Enable Amazon ELB or ALB logging

Enable the logging on your ELB or your ALB first to collect your logs. ALB and ELB logs can be written in an Amazon S3 bucket and consumed by a Lambda function. For more information, see Enable access logs for your Classic Load Balancer.

amazon elb log enable

Set the interval to 5 minutes and define your S3 bucket and prefix. To avoid having an ambiguously defined S3 event notification configuration, be sure to use a unique location that does not overlap with any other load balancer’s log location. When multiple load balancers are logging to the same bucket, be sure to use a unique prefix, such as my-bucket-for-elb-logs/my-elb-name, to have their logs stored in separate locations.

amazon elb log configuration

Send logs to Datadog

  1. If you haven’t already, set up the Datadog Forwarder Lambda function in your AWS account.
  2. Once set up, go to the Datadog Forwarder Lambda function. Set up your triggers automatically or manually on the S3 bucket that contains your ELB logs. For the manual setup, use the event type All object create events.
  3. Use the Log Explorer to explore your logs.

For more information on collecting AWS Services logs, see Send AWS Services Logs with the Datadog Lambda Function.

Data Collected

Metrics

See metric-spec.yaml for a list of metrics provided by this integration.

Events

The Amazon Elastic Load Balancing integration does not include any events.

Service Checks

The Amazon Elastic Load Balancing integration does not include any service checks.

Troubleshooting

Need help? Contact Datadog support.