Navigate to the custom template.
Choose Edit Expert Mode Create Metric .
Follow the instructions in the wizard.