canonical / prometheus-juju-exporter

GNU General Public License v3.0
2 stars 8 forks source link

manually added machines in juju show up as metal #80

Open nishant-dash opened 4 days ago

nishant-dash commented 4 days ago

using p-j-e rev 17, I have lxd vms that I have manually added into juju 3.5.1

p-j-e shows them as metals but it would be ideal if it detected them as lxds, although this would depend what juju can offer you in the way of information about this manually added machine. I can't use virt macs since to add a mac prefix since those get tagged as KVM only.

My main question here is, how should you treat manually added machines?

aieri commented 4 days ago

yes, this is expected because "Metal" is the default category, and the exporter only knows something is an lxd if juju knows it too. A manually-added machine is of unknown type for juju so all you have is the metal/kvm split based on the mac address. Do you need manually added LXD VMs to be tagged separately from other virtual machines?