Added pluggable ability to define new metric types
Ability to plugin a custom function to query