Define or edit a custom metric