[JBWS-3733]:Allow enabling/disabling endpoint metrics