printf-style formatting of metric names

Fixes #6