Average of a timeseries in a bar chart

Hi,

I have a timeseries metrics from prometheus, and one of the example looks like this:
node_gpu_util_with_version{instance=“VM1”, job=“node-metrics”, version=“4.1.6.0.r1-00027.01-STD.PROD-1”} 2.7935965061187744

The “version” label of this metrics is the software image version of the board, and it is changing daily from the daily build and re-flash the board. What I want to achieve is to display the average value of the same “version”. Everytime there is a version change, the dashboard should add a new bar and showing and updating the average value of the timeseries metrics there. Therefore, after a re-flashing software image of the board I can find the trend of this metrics to find if there is a performance regression between the two versions.

My question is, is it possible to do that? If so, how can I do that? Thanks!