mirror of
https://github.com/wearepixel/pulsewise-collector.git
synced 2026-11-14 14:01:50 +00:00
feat: add auto-update with --no-auto-update flag
Collector now checks for updates at startup (after 30s) and every 6h. When a newer version is detected via the /collector/release/latest endpoint, it downloads the new binary, atomically replaces itself, then re-execs in-place so the service manager sees no interruption. Auto-update is enabled by default; pass --no-auto-update to disable. Version is injected at build time via -ldflags for release builds.
This commit is contained in:
Reference in New Issue
Block a user