# APM using AWS EC2

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fintegrations%2Faws%2Fapm-amazon-ec2.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fintegrations%2Faws%2Fapm-amazon-ec2.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

Using [Amazon Data Firehose](https://coralogix.com/docs/docs/integrations/aws/amazon-data-firehose/aws-cloudwatch-metric-streams-with-amazon-data-firehose/.md), 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](https://coralogix.com/blog/application-performance-monitoring-visibility/) features.

[![](/docs/assets/images/host-1024x573-c06dc46e32d24be1722364e728c52c31.webp)](https://coralogix.com/docs/docs/assets/images/host-1024x573-c06dc46e32d24be1722364e728c52c31.webp)

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

1. [Sign up](https://signup.coralogix.com/#/) for a Coralogix account. Set up your account on the Coralogix [domain](https://coralogix.com/docs/docs/user-guides/account-management/account-settings/coralogix-domain/.md) corresponding to the region within which you would like your data stored.

2. Access your Coralogix [Send Your Data - API Key](https://coralogix.com/docs/docs/user-guides/account-management/api-keys/send-your-data-api-key/.md).

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

4. [Create](https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-creating.html) an active AWS account with relevant permissions

## Installation & configuration[​](#installation--configuration "Direct link to 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](https://coralogix.com/docs/docs/integrations/aws/amazon-data-firehose/aws-cloudwatch-metric-streams-with-amazon-data-firehose/.md) 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[​](#apm-on-your-coralogix-dashboard "Direct link to APM on your Coralogix dashboard")

**Access our APM features on your Coralogix dashboard**

**STEP 1**: Access **Explore** > **Tracing**. Click on the trace of interest.

[![](/docs/assets/images/Trace-of-interest-1024x549-0d145e884336c0c06c616055b6ee2d7a.webp)](https://coralogix.com/docs/docs/assets/images/Trace-of-interest-1024x549-0d145e884336c0c06c616055b6ee2d7a.webp)

**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.

[![](/docs/assets/images/APM-features-1-1024x573-826792c2268f5b291e4fe09cf07c7508.webp)](https://coralogix.com/docs/docs/assets/images/APM-features-1-1024x573-826792c2268f5b291e4fe09cf07c7508.webp)
