All-metal magnetic flowmeter