Flexible selection of metrics