A typical level wouldn't work on the moon - the stuff in the glass cylinders is (usually,
AFAIK) glycol / antifreeze which works fine under most terrestrial conditions but on the moon (about +260F in the sun and -280F in the shade) the glycol would either boil or freeze. Assuming it's a 60/40 mix of propylene glycol and water (not sure exactly, but that's a pretty common "antifreeze" composition) the freezing point would be about -55F and the boiling point 225F. Assuming you could find a level that had suitable stuff in the glasses, it'd work though.