Splunk AppDynamics

How to configure appdynamics in AWS ECS?

CommunityUser
Splunk Employee
Splunk Employee

Hi,

Currently, we have multiple docker based containers running in AWS ECS and we are trying to install appdynamics agents in ECS.

How do we achieve this?

Labels (1)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

Hello Prateek

After working with appDynamics support, the missing piece for us was to run the machine agent container using the DAEMON strategy in ECS:

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html#service_scheduler_daem...

Once we did this, we got past the errors and were able to start the container.

Additionally, we had to add the following mounts to the task definition

/:/hostroot:ro
/var/run/docker.sock:/var/run/docker.sock

View solution in original post

Shane_Tembo2
Explorer

Good day @Venkata.Vadlamani hope you well,

Did you ever manage to get the monitoring right with Fargate?

I need to install the same on containers and also have a java and .net agents.

Please adviae?

regards.
Shane. 

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi,

It will be really helpful, if you can share me the documentation on how to enable appdynamics monitoring for java app hosted on AWS ECS Fargate?

0 Karma

Sajna_Sreenivas
Path Finder

Hi Liana,

Can you give some information on which agent you are trying to install?

Will guide you accordingly.

Thanks and Regards,

Sajna Sreenivasan

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I am also looking for this information.

I'm already deploying the java application agent in each of my docker containers running in ECS.

However what I am trying to do specifically is run the machine agent as a docker container as discussed in these resources:

https://blog.appdynamics.com/product/amazon-ecs-or-eks-appdynamics-supports-both/

https://docs.appdynamics.com/display/AWS/AWS+and+AppDynamics+APM

When we ultimately start to run the container via the ECS task, we get the following error:

Could not start up the machine agent due to: Failed to get a response from /info using a GET request. The error encountered is: javax.xml.ws.WebServiceException: Cannot connect to Docker. The unix socket file /var/run/docker.sock does not exist. Please provide a valid file to access.

Details: 
Container = server agent image (with integrated docker visibility): 
docker pull store/appdynamics/machine:4.4

The following environment variables are getting set: 
APPDYNAMICS_AGENT_APPLICATION_NAME = xxx
APPDYNANNICS_SIM_ENABLED = true 
APPDYNAMICS_DOCKER_ENABLED = true 
APPDYNAMICS_AGENT_NODE_NAME = xxx
APPDYNAMICS_AGENT_TIER_NAME = xxx

APPDYNAMICS_CONTROLLER_HOST_NAME = xxx

APPDYNAMICS_AGENT_ACCOUNT_NAME = xxx

APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY = xxx

APPDYNAMICS_CONTROLLER_SSL_ENABLED = xxx

APPDYNAMICS_CONTROLLER_PORT = xxx


The DAEMON strategy is being used in ECS for the task.

Note – I did not configure any ports for the appdynamics agent. It did not appear per documentation this was required – nor could I tell what port needed to be mapped in the ECS task, so none was specified.

0 Karma

Prateek_Sachan
Explorer

Was this issue resolved? If yes, how?

Thanks, Prateek

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hello Prateek

After working with appDynamics support, the missing piece for us was to run the machine agent container using the DAEMON strategy in ECS:

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html#service_scheduler_daem...

Once we did this, we got past the errors and were able to start the container.

Additionally, we had to add the following mounts to the task definition

/:/hostroot:ro
/var/run/docker.sock:/var/run/docker.sock

Sagar_Naringrek
Explorer

Hi Experts,

We have aws ecs on ec2. We are trying to deploy java agent on it. We have created new task definition with app-agent tomcat image. Do we need to create service of this task ? or we have to add this task in every service that we want monitor There is nothing mentioned in the blog after creation of task definition.

We have 15 services and 5 containers running.

Please help us.

Regards,

Sagar

0 Karma

Gabriella_Quera
Engager

I would keep it simple and use the “app-agent tomcat” image as the base image and add your application to it.

Tags (3)

Venkata_Vadlama
Engager

Hi,

How would you configure machine Agent for a docker container  running on AWS ECS Fargate ? The documentation is not very clear about how to do that.

Thanks
VVS

Tags (1)
Get Updates on the Splunk Community!

New This Month - Splunk Observability updates and improvements for faster ...

What’s New? This month, we’re delivering several enhancements across Splunk Observability Cloud for faster and ...

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...