Hey @ixb. You will need to run the profiler daemon inside the container with the application that you want to profile. So, you’ll just need add the deamon jar to the file system for your docker container (or whatever container you’re using) and provide the startup commands as part of that script in whatever way makes sense for the deployment process. Similar to however your container gets access to the newrelic.jar, you’d just bring in the jfr-daemon-n.n.n.jar and configure environment variables and settings as outlined here:
You could optionally run the daemon in a second container and expose the appropriate ports for remote jmx access on the applications container and java process. However, it is important to note that the daemon should be 1:1 with a java process that it is monitoring. One daemon per java process.
Hope that helps!