Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect and Export Notes of LXC and VMs from Proxmox #288

Open
federicociro opened this issue Oct 6, 2024 · 4 comments
Open

Collect and Export Notes of LXC and VMs from Proxmox #288

federicociro opened this issue Oct 6, 2024 · 4 comments

Comments

@federicociro
Copy link

I would like to request a feature that allows the prometheus-pve-exporter to collect and export the "Notes" field of LXC containers and VMs from Proxmox VE.

Use Case

In Proxmox VE, each LXC container and virtual machine has a "Notes" field that users can utilize for documenting specific information about the instance, such as the purpose, configuration details, or operational notes. Exporting this information to Prometheus would be beneficial for maintaining an overview of various VMs/containers and their intended use.

Feature Request

  • Extend the current exporter to fetch the "Notes" field of each VM and LXC container.
  • Export this information as part of the Prometheus metrics, potentially as a label or a separate metric.
  • This feature would help in monitoring and correlating notes with other VM/container metrics in dashboards such as Grafana.

Example of Expected Output

For each LXC or VM, a metric like this could be exported:

pve_lxc_notes{id="101", name="container01"} "Backup container for database"
pve_vm_notes{id="200", name="vm02"} "Production web server"

This way, the notes could be exposed alongside other VM or LXC-related metrics.

Additional Notes

  • It would be helpful if this feature respects any privacy/security concerns around the notes field, with options to enable/disable the export of this information.
  • Support for fetching notes for both LXC containers and QEMU virtual machines is requested.
@federicociro
Copy link
Author

The field I am talking about is description

https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/lxc/{vmid}/config

@znerol
Copy link
Member

znerol commented Oct 11, 2024

Thanks for the suggestion.

Did you already try to use tags in order to solve your use case?

@federicociro
Copy link
Author

I did, it helps but notes have the full info.

@znerol
Copy link
Member

znerol commented Oct 11, 2024

From the issue summary, I gather that this information is supposed to be displayed in grafana. Did you explore annotations as a way to record and display additional context information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants