For those manufacture companies which are specialized on the highly-customized design and small amount products, the instant information of the production is very difficult to be retrieved due to many uncontrolled factors like the complication of the production process, the situation of the multi-factory assembly line, and the supplies of the raw materials for the multi-batch processes. These uncertain factors make the production of these companies is difficult to be calculated and disclosed. This study proposed a platform, the agile manufacturing platform based IoT and edge computing, to solve the above problems. This platform using the IoT devices and edge computing to fabricate a manufacturing control system. In this system, the instant manufacturing data from the production line can be collected immediately and the analysis of these data from the IoT devices can be performed to find any abnormal situations in the production line. The newly developed production line performance evaluating method based in the propose platform can help to improve the performance, to control the abnormal status, and to increase the automatic production in these company. Most important, the uncertain situations in production line of these company can be found and removed.