Only collect MySQL metrics from /proc on linux machines.

Fix #984