Bryan, first of all thank you very much for the clarifications, the explanation was great.
About the meaning of my metric, it is to know when any virtual machine goes offline in my cluster. However I have more than one cluster in my environment. This generates repeated VM ID's.
When I run my "pve_up" query, it brings me:
pve_up{id="qemu/100",instance="
0.0.0.0:9221",job="PVE-Cluster"}
Where ID refers to the machine created in the cluster and if there is more than one, therefore, two identical ID's.
Using your query "count by (id) (pve_guest_info) > 1" I found which ID's are repeated, but I still don't know how to get around it.
When I run my "pve_guest_info" query it brings me:
pve_guest_info{id="qemu/100",instance="
0.0.0.0:9221",job="PVE-Cluster",name="lab01",node="MyNode",type="qemu"}
So, through the repeating ID I would need to get the information from a repeating ID, I have no idea how to solve this, since the ID's are repeated and I need them to generate my reference, or is there another way?
Thank you very much.