How to setup java agents in docker containers so they appear logically in Investigator Tree

book

Article ID: 108567

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

Java Agents are now supported on Docker containers. This is some guidance on how to configure them. 



How can I  setup Java agents in Docker containers so they appear logically in Investigator Tree?
Since the container doesn't know what host it's actually running on, what is the best practice? 

Environment

CA APM 10.5

Resolution


"Hostname" is the container ID or the hostname that you configured when starting the container with "docker run -h <hostname>".

You can either change the configuration when building the image (e.g. by changing the init_agent.sh script) or by mounting the configuration into the container.
 

Additional Information

https://communities.ca.com/message/241829747?et=watches.email.thread

http://https://github.com/CA-APM/ca-apm-example-docker-tomcat