Skip to content

APM using AWS EC2

Using Amazon Data Firehose, you can now send metrics to Coralogix from Amazon Elastic Compute Cloud (Amazon EC2) and view them on your Coralogix dashboard using our application performance monitoring features.

Prerequisites

1. Sign up for a Coralogix account. Set up your account on the Coralogix domain corresponding to the region within which you would like your data stored.

2. Access your Coralogix Send Your Data - API Key.

3. Configure a metrics bucket in your Coralogix dashboard. Data Flow > Setup Archive

4. Create an active AWS account with relevant permissions

Installation & Configuration

Configure Amazon Data Firehose to send your telemetry data to Coralogix. We strongly recommend sending Coralogix your logs, metrics, and tracing, so that you can enjoy the highest quality APM.

STEP 1: Configure Amazon Data Firehose to send your metrics to Coralogix.

STEP 2: Set up OpenTelemetry Collector to correlate your logs and traces.

Add the resource detection processor.

processors:
      resourcedetection/ec2:
        detectors: ["ec2", "env"]
        ec2:
          # A list of regex's to match tag keys to add as resource attributes
          tags:
            - ^ec2.tag.name$
            - ^ec2.tag.subsystem$
            - ^aws.*$

STEP 3: Add AWS tags to spans.

Add the resourcedetection/ec2 processor to the list of span processors.

traces:
    processors:
      - memory_limiter
      - batch
      - resourcedetection/ec2

STEP 4: Add AWS tags to logs.

Add the resourcedetection/ec2 processor to the list of logs processors.

logs:
  processors:
    - resourcedetection/ec2
  • Use cloud.provider and cloud.platform to validate that the process is running on AWS using the EC2 platform.

  • Use host.id and host.name to correlate the logs with metrics and spans.

APM on Your Coralogix Dashboard

Access our APM features on your Coralogix dashboard

STEP 1: In your Coralogix dashboard, click on Explore > Tracing. Click on the trace of interest.

STEP 2: Click on the HOST feature to view the AWS metrics with a host.id associated with a specific EC2 instance. View your metrics in either SPANS VIEW or DEPENDENCIES VIEW.

Support

Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].