puts tags in generated json as well
add function to extract parts of the timeseries name