Alternator one cheaper, but....
If you use the alternator type, there is one thing you should know. When the batteries are charged and the regulator shuts off charging, the tach will quit. For a few seconds, a minute or whatever. If you have other charging sources, like wind or solar, they will can keep the voltage up high enough that the regulator will not cut in for long periods of time. During that time your tach will be off.This is not necessarily such a bad thing, but if you are unaware of it, you may spend a lot of time, and maybe money, trying to solve a non-existant problem.I have just such a setup and have found it to be quite adaquate for 6 years and 10,000 miles of cruising.The alternator driving tack is far cheaper than the Yanmar version. Shop around and you can get one for under $100, maybe under $50 (I think I paid about $40 for a discontinued model). The Yanmar one was around $300 at the time.