QUESTION: I instrumented the JBoss nodes from the run.sh script. How can I exclude a JBoss instance we don't want to monitor on a particular host?
JBoss instances are started using the command "run.sh(bat) –c [instance_name]". You can modify the run.sh(bat) script, and check the input arguments and only call the Foglight JavaEE integration code block for the nodes that you want to be instrumented. The arguments are passed in using %* in the .bat file and $@ in the .sh file. $@ references all of the arguments passed in, $1 references the first argument, $2 references the second argument, and so on.
You could also use a different run.sh script, but using a single script would probably be the best approach.