In Grafana make template:
Name - Instance
Query - label_values(instance)
for recive all instance.
And have reqest example:
sum(machine_cpu_cores) by (instance)
If sum(machine_cpu_cores) by (instance=~"$Instance") I have error. How do it right? Thanks.