master
filter_map
metrics[ts] = counters.each_key.map do |key| val = get_sample_value(s, key) next if val.nil? [key, val]