Self-hosting a full monitoring stack in one command: servers, logs, APM and status pages
说明与用途
使用单个命令安装完整的自托管监控栈,整合指标、日志、状态页面和可选跟踪,支持自动更新和备份。
问题
Teams need a self-hosted monitoring stack to keep data in-house or avoid escalating SaaS costs, but typical stacks involve five separate services that are hard to maintain for small teams.
结果
A single command installs a fully functional, self‑hosted monitoring stack that replaces five separate services, reduces maintenance effort, and supports offline operation with secure license verification.
工作流
- 1. Run the one‑command installer with domain, email, and license parameters.
- 2. Installer installs Docker if missing, downloads and verifies the release bundle via Ed25519 signature.
- 3. Generates a Caddyfile for automatic HTTPS and starts Postgres, a worker, and two web replicas for rolling updates.
- 4. Use
vigil updateto perform safe, rollback‑enabled updates. - 5. Use
vigil backupto dump the database and config every six hours via cron. - 6. For private networks, add
--internal-tlsfor self‑signed certs and--no-phone-hometo keep the instance offline.
证据
Vigil's self-hosted edition installs like this on any Ubuntu, Debian, RHEL-family or Alpine host:
It installs Docker if missing, downloads the release bundle and its Ed25519 signature, verifies the signature with openssl before extracting anything, writes a Caddyfile with automatic HTTPS, and starts Postgres, a worker and two web replicas so updates are rolling.
Postgres is the only stateful part. A fleet of 20 servers reporting every 30 seconds with logs enabled lands around 2 GB of database growth a month at the default retention.
- 记录日期: 2026-09-22T02:00:44.280Z