Add template information
rpelissi opened this issue · 2 comments
rpelissi commented
Hi!
First thanks for this beautiful exporter :)
Could you try to add the fact that a vm is in fact a template in the pve_guest_info metric?
could be useful for filters and alerts.
Let me know if you have any question.
Thanks!
znerol commented
That might be possible. While the official docs on the /cluster/resources endpoint do not mention it, there seems to be a template
key on returned qemu records.
Running pvesh
against /cluster/resources
of my cluster indicates that:
# pvesh get /cluster/resources --output-format json-pretty
...
[
...
{
...
"id" : "qemu/XXXX",
"status" : "stopped",
"template" : 1,
"type" : "qemu",
"uptime" : 0,
"vmid" : XXXX
...
},
...
]
Thus, the template
label can likely be added from within the ClusterResourceCollector.
Pull requests welcome.