General help with using metric definitions with a plugin

Well, that was super easy. I wish this stuff was in the documentation. How would you or I find this out on our own? Sometimes feel silly asking these questions but I don’t seem to find the answer in documentation. where else would I look?