Make metrics naming more general.

Allowing the use of two environment variables to specify the structure of
prometheus metrics will ease the use of the `Instrumented` trait in a broader
set of contexts.