Proxmox Backup Server plugin

A backup plugin (plugins/pbs, install it from Plugin store) that reads a Proxmox Backup Server with a read-only API token (the Audit role for both the user and the token) and shows, for every VM, container and host: the newest backup and its age, the copies kept, the size, whether the last backup worked and whether it was verified; for every datastore: used space, the date the server expects it to be full and the last result of the garbage collection, prune, verify and sync jobs. Netlens ties each backup to the guest of your Proxmox plugin (by type and VM id) and gives you a Backups page (Monitoring → Backups), a Guest backups dashboard card, a Backup card on each guest’s device page, netlens_backup_* values in /metrics, and events when a backup fails, a guest is late (older than 2.5 times its usual interval) or a datastore is on course to fill up (30 days; critical at 3). It also lists the guests that have no backup at all (only for hypervisors that the backup server backs up at all: a Hyper-V host it never touches is not listed). Tested against a real Proxmox Backup Server 4.2. Other backup servers can be added as plugins of the new backup kind (see the plugin guide).