How to rotate a knob, valve or dial in only 1 axis?

I need to rotate a few objects inside a blueprint with my motion controllers. They are mostly knobs, valves, dials etc… The tutorials I have seen so far are only for free moving objects, but I need them constrained and only move in 1 axis.