It is more literal than idiom. Gauge, as a verb, means "estimate or determine the magnitude, amount, or volume of" Such as an example, "Astronomers can gauge the star's intrinsic brightness"
It is not "gouge" as in puncturing or ripping off.
Gauge in the sentence is measure, assess, test
and verbally may be "judge", because it is similar.