Is this "noodle" as in human-edible pasta? Dried/hard or new/wet/cooked?
Even if contact is allowed with a hard piece of pasta, those little rotary encoders need MUCH more torque to turn than than you can expect from the circumference of the shaft of the encoder.
Even with a larger wheel and "pinch-roller" (as in old tape recorders) there wouldn't be the expectation of much reliability.
And if the pasta is wet/limp, that solution seems completely unworkable.
Also not clear if it is discrete pieces/lengths of noodle that need measuring, or a continuous "strand"?
It would be easy enough to count and even measure discrete lengths.
But measuring a continuous strand seems much more problematic.
As others have already noted, none of those "user-interface", panel-mount rotary encoders are compliant enough for your application.
Probably the most "compliant" kind of rotary encoder is the optical-sensed type because there is no friction in the sensor (only in the rotating part).
If you can devise some sort of rollers/pulleys, etc. that the noodle can reliably turn, then you can simply apply a black/white pattern to the rotating part and use an optical sensor to detect when it is turning. With a pair of sensors, you could detect the direction of travel, and with the proper diameter and pattern, you could actually measure length/distance.