better metrics configuration