Allow to list metric names and to check for valid ones

Second iteration. Supersedes #13