add consumer metrics. rename dynamic metrics name to have variables first so they are all grouped by variable name.