Hi,
Does anyone have experience deploying Introscope agent within a Docker container to monitor a Java application?
My customer's application environment looks something like that:
/prodlib/JENKIN/workspace/DGE/deploy
- conf
- docker
- dge-ws-1.0.1-SNAPSHOT
- Jenkinsfile
- bin
- Dockerfile
- applications
And one of the applications which I need to monitor is residing in the THDEV folder. Each folder is a Docker container
/prodlib/JENKIN/workspace/DGE/deploy/docker
- ID
- TH
- IDDEV
- THDEV
And I was told by the customer developer to include the agent flags within the JAVA_OPTS variable in the docker-compose.overwrite.yml in the THDEV folder:
/prodlib/JENKIN/workspace/DGE/deploy/docker/THDEV
- docker-compose.yml
- docker-compose.overwrite.yml
I copied the Wily folder to /prodlib/JENKIN/workspace/DGE/deploy/applications
and added the -javaagent and -agentProfile flags with full path in the docker-compose.overwrite.yml
However, upon restarting the docker container, I do not see any Wily logs in the docker-compose logs, and neither is any logs generated in the wily/logs folder. ps -ef | grep wily does not return any output. Appreciate if anyone can shed some light on this, as I'm new to Docker and I'm pretty sure the agent did not get hooked up to the JVM startup process due to some misconfiguration on my end
Thanks