Use formatted gauge value on metrics, fixes #852