Refactor telemetry backend to store all telemetry in a single collection and add repo_source-based filtering. Key changes: - Added detect_repo_source() in misc/api.func to auto-detect/export REPO_SOURCE (ProxmoxVE/ProxmoxVED/external) when scripts are sourced. - Consolidated PocketBase collections into a single default collection (_telemetry_data) across service, migration, and scripts; updated defaults in migrate.go, migration.go, migrate.sh and migration shell scripts. - Simplified PBClient to use one targetColl and removed collection resolution logic; updated create/update/find/fetch functions to use targetColl. - Introduced repo_source field (values: "ProxmoxVE", "ProxmoxVED", "external") on telemetry records and telemetry payloads; updated validation and logging. - Added repo filtering to dashboard endpoints, FetchDashboardData and FetchRecordsPaginated, plus a repo selector in the dashboard UI; default filter is ProxmoxVE (production), with an "all" option. - Adjusted API handlers and callers to pass repo filters and include repo_source when upserting telemetry. - Misc: updated comments, error messages, and logging to reflect the new model; added telemetry-service.exe binary. Purpose: simplify data model (single collection), make telemetry attributable to repository sources, and enable dashboard filtering by repo/source.
🚧 ProxmoxVED Helper-Scripts (Development Repository)
Warning: This repository is under active development and is not intended for production use. Changes may occur at any time!
🔧 What is this?
This repository contains a collection of scripts for managing and automating Proxmox Virtual Environment (Proxmox VE). Originally created by tteck, the project is now community-driven and continues to evolve.
🚀 Development Status
- ⚠️ Unstable: Features may be incomplete or subject to change.
- 📢 Community-driven: Contributions and feedback are welcome.
- 🔄 Frequent updates: Active development means rapid iterations and fixes.
💬 Get Involved
Join the discussion, contribute code, or report issues:
- Discord: Join the Proxmox Helper Scripts Discord server
- GitHub Issues: Report bugs or request features
📜 License
This project is licensed under the MIT License.
Proxmox® is a registered trademark of Proxmox Server Solutions GmbH.
Languages
Shell
82.6%
Go
8.7%
TypeScript
8.5%