avoid duplicated metrics between core and jvm specific module

avoid duplicated metrics between core and jvm specific module