Getting CPUs and instances as labels in alerting

What is the correct way to get instances and cpus as labels in alerting? I want to be able to show the instances and all cpus for that instance as labels to pass to annotations.

below is my query.

sum by (cpu) (rate(node_cpu_seconds_total{mode!=“idle”}[1m]))