General help with using metric definitions with a plugin

It might be easiest to just use the built-in metrics