Monitoring fuel consumption in diesel engines