Faria sold a small fuel management system (for gas) for awhile. Expensive and now discontinued.
Here's a NOS on Ebay for $350. Because most diesel have a return line, the flow meter on the Faria unit wouldn't be accurate but . . . the Faria does have the ability to adjust the reading, meaning that if your diesel returned 10% it is possible to adjust the reading down by 10%.
I bought several when they were first discontinued for use on my 16' cruising boat with a 50hp outboard. I had installed an aftermarket 23 gallon underdeck fuel tank (to get a 150 mile range) and I needed an accurate fuel gauge. I installed both a floppy needle gauge and the Faria. The Faria reads gallons per hour (or liters) down to .01. It tallies trip usage, total usage, and has a self-set low fuel alarm. I've found it to be incredibly accurate. If it says I've used 18.3 gallons, that's all I better put in at the pump or it will burp out the vent. At WOT, I can use just over 4 gallons per hour. Of course, if I did that for an hour I would be 30 miles away.
As useful as the Faria is to me with a 23 gallon tank, I can see why it was discontinued. Its impeller can only measures "small" gallons per hour (maybe up to 30gph?). Back when it was first manufactured, and gas/diesel was under $1 a gallon, installing an expensive monitoring system for "small" differences just didn't pencil out. Maybe that will change.
I'm not sure how difficult it would be to use with a diesel that has a return line. If the return went into the feed line instead of the tank, it would slow the impellor and likely give an accurate reading. Some diesel returns cool the injector pump and I don't know if heat buildup in the fuel could be a problem.
Prior to installing the Faria I looked at other fluid flow monitoring systems. They are out there, including fuel rated flow meters. As they are not claimed to be "marine," they tend to be relatively inexpensive (<$100). Digiflow was one company that had meters that looked like they could be repurposed. I actually bought one, but before I could install it I saw a couple cheap Faria units on Ebay.
A monitor system would take all the guess work (and arguing) out of a thread about fuel usage for trawlers, but, and here is the problem with buying and installing a system, once you graph out the fuel usage/rpm, you have all the information you need and the system becomes a superfluity. Well, you can still show it off to guests.