Grouping metric values in table panel

Hi,
I have metrics data from prometheus in below format:

I want to present this data in below format:


Can anyone let me know how can I achieve this.

Thanks!

1 Like