It would be good to do the same thing here, have the UI check when its creating the handler list whether to add the metrics servlet.