Ok... there are a few terms you need to learn and what they mean.
Production: This is a planets total RAW output of productive capital that can be divided between Manufacturing, Research and Wealth. The main contributes to a planets Production is population and the capital and directly modified with a planets approval rating going from -25 to +25 percent.
Manufacturing: this is the part of the production you use to build stuff and is modified by a planets factories. This is you planets total industrial output.
Social Manufacturing: This is the part of your manufacturing you use to build improvements on a planet. You manage this with the Social/military slider on the planetary governing page.
Military Manufacturing: this is the amount of industrial capital you send to any shipyard that this planet are sponsoring.
On the planetary governing page there are two sliders you can use to set how you distribute a planets resource output. The circle is used to decide how much of a planets Production capital is prioritized into each area of Manufacturing, Wealth and Research.
You then have the Social/Military slider that decide how much of the planets industrial Manufacturing goes into Social or Military spending.
You need to play around with these settings and see what happens to your planets values, I'm pretty sure you will figure out how it works and find the best solution for your play-style.