Creating a downsampling task for each tag in the measurement

My bucket has a measurement that contains multiple tags, one per “player” of my game server, that holds onto that player’s numeric time-series data. I want to downsample this measurement, retaining these tags, so that I can look up each player’s time-series data that is downsampled.

I’ve checked out the official instruction to downsample tag-less data and managed to downsample server-wide numeric data (eg. frame rate). I can’t find any instructions online for tagged data.

Note that I’m NOT looking for ways to create new tags for describing downsampled data, which is written in the official instruction and I’ve read it all. I want to retain existing tags and pass them over to the downsampled bucket.

Thanks