I am using JavaMelody performance monitoring tool, in my code base with the respective XML configuration and annotations in "DEV" environment. Since these Javamelody related configurations are coupled with the source code is there any where we can write a logic or using some configuration where we can switch "On" and "Off" the configuration? Because we are going to do the performance monitoring only in "DEV" env and not in "PROD" env. Hence when it goes to the "PROD" is there any way to switch OFF this performance monitoring configuration which is coupled with the soure code? What are the best ways of doing so? please clarify.
Thanks.But this is nothing to do with the Javamelody, from Java side how we can make sure that we can switch on and off the java melody config using some flag or a configuration parameter or through Maven build or ant build? Please let me know your opinion.