DX Application Performance Management

 View Only
Expand all | Collapse all

How do you add Introscope agent to monitor Spring Boot application in Docker container

  • 1.  How do you add Introscope agent to monitor Spring Boot application in Docker container

    Posted Apr 24, 2018 02:30 AM

    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

     



  • 2.  Re: How do you add Introscope agent to monitor Spring Boot application in Docker container

    Broadcom Employee
    Posted Apr 24, 2018 08:38 AM

    Converted to a discussion since both a specific and open-ended question.