# Pre-requisite for AWS EC2 and RDS monitoring

**URL:** <https://community.dynatrace.com/t/pre-requisite-for-aws-ec2-and-rds-monitoring/34379>\
**Category:** Cloud platforms\
**Tags:** installation, aws, oneagent\
**Created:** [March 4, 2022, 12:48pm UTC](https://community.dynatrace.com/t/pre-requisite-for-aws-ec2-and-rds-monitoring/34379 "2022-03-04T12:48:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 4, 2022, 12:48pm UTC](https://community.dynatrace.com/t/pre-requisite-for-aws-ec2-and-rds-monitoring/34379/1 "2022-03-04T12:48:11Z")

</div>

Hello Folks,

We are planning to set up the monitoring for AWS EC2 and RDS. We are doing this first time hence need some guidance.

We would like to know,&nbsp;the pre-requisite to set up the monitoring&nbsp;AWS EC2 instance and RDS.

Regards,

AK

---

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [March 8, 2022, 7:58pm UTC](https://community.dynatrace.com/t/pre-requisite-for-aws-ec2-and-rds-monitoring/34379/2 "2022-03-08T19:58:59Z")

</div>

Hello&nbsp;[@AK](https://community.dynatrace.com/user/2080)

EC2 instances can be monitored by deploying the Dynatrace OneAgent to the instance, as long as the operating system used is [supported](https://www.dynatrace.com/support/help/shortlink/section-technology-support). The agent must be able to communicate with your SaaS tenant (or Managed Cluster via Cluster ActiveGate) or you can deploy ActiveGates and have the agents connect via these. I see your questions regarding [best practices for ActiveGate deployment](https://community.dynatrace.com/topic/181686) was already answered 😉

If you set up AWS monitoring via CloudWatch integration, you’re also able to gather certain metrics for EC2 instances, but you’ll get more info deploying an agent 🙂  
For RDS, the same AWS monitoring is used to gain insight.

I assume you have Dynatrace SaaS? For more info, see here:&nbsp;[Monitor Amazon Web Services with CloudWatch metrics — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/aws-saas-deployment)

Apart from the typical AWS monitoring of EC2, EBS, ELB, and RDS, with Dynatrace you can also monitor other AWS services that influence the performance of your AWS-hosted applications.

> **[All AWS cloud services](https://docs.dynatrace.com/docs/ingest-from/amazon-web-services-classic/integrate-with-aws/aws-all-services)**
>
> Monitor all AWS cloud services with Dynatrace and view available metrics.

I hope this helps a bit.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 10, 2022, 3:31pm UTC](https://community.dynatrace.com/t/pre-requisite-for-aws-ec2-and-rds-monitoring/34379/3 "2022-03-10T15:31:22Z")

</div>

[@andre\_vdveen](https://community.dynatrace.com/user/11931), Thank you for your response. That really helped.

I was about to come to forum to update the thread. I have tested EC2 (OneAgent) and RDS using Cloud Watch Integration (Role based authentication) in my test environment and its working good.

As I will be implementing this at customer side,&nbsp;I encountered with one question, is it possible that, OneAgent installed on EC2 instance will communicate to Dynatrace SaaS via our internal Environment ActiveGate?

If yes, do I need to open a communication (on port 9999) from that EC2 instance to our internal ActiveGate?

How people usually do it? do they let OneAgent to communicate directly to Dynatrace SaaS over 443?

Regards,

AK

---

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [March 14, 2022, 6:10pm UTC](https://community.dynatrace.com/t/pre-requisite-for-aws-ec2-and-rds-monitoring/34379/4 "2022-03-14T18:10:08Z")

</div>

Hi&nbsp;[@AK](https://community.dynatrace.com/user/2080)&nbsp;I’m glad you managed to get things going, well done! 🙂

Regarding your question about direct vs. via ActiveGate communication to the SaaS tenant, there isn’t a single correct answer in my opinion. Both options are fine and acceptable.  
But what I always suggest to our clients is to use an ActiveGate if there are more than only a few hosts that need to communicate to the SaaS tenant, as it reduces admin overhead in opening ports and setting up firewall rules.

Yes, port 9999 is required between OneAgent on EC2 instance and ActiveGate. See here for a diagram that explains the connectivity:&nbsp;[Supported connectivity schemes for ActiveGates — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/sgw-availability#saas-scheme)

One of the benefits of deploying an ActiveGate for OneAgent traffic routing is that it can also be used for other functions:&nbsp;[Route OneAgent traffic to Dynatrace, monitor cloud environments and remote technologies using extensions — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/activegate-routing-monitoring)
