Vigil
A self-hosted error tracker that speaks Sentry’s wire protocol. Point any
Sentry SDK, or sentry-cli, at it and it works. It covers the same ground as
GlitchTip, plus the parts GlitchTip drops, on Phoenix LiveView with Oban for
everything that runs in the background, and Postgres as the only store.
Source: ssh://gabe@gg.neiam.co:22222/neiam/vigil.git (branch master).
What it does
- Errors: events from any Sentry SDK (envelopes,
store, CSP reports, minidumps), grouped by 2019 Sentry’s grouping strategies, with GlitchTip’s as an option. You get issues with search, triage, assignment, comments, sharing, and resolving in the current or next release. - Alerts: “N events in M minutes”, new issues, regressions, cron monitors failing, and uptime changes. They go by email, or to Slack-style, Discord, Google Chat, ntfy, Teams or Zulip webhooks, with retries and a delivery log.
- Releases and sourcemaps:
sentry-cli releases,deploysandsourcemaps upload --wait. Minified JavaScript is symbolicated by a Rust NIF. - Native and mobile:
sentry-cli debug-files upload(ELF, Mach-O, PE/PDB). Native frames are symbolicated, ProGuard mappings applied to JVM frames, and minidumps turned into events. - Performance: transactions (sentry-elixir via OpenTelemetry) and streamed spans (sentry-python 3), shown as throughput, latency percentiles, error rates and trace waterfalls.
- Cron monitors: check-ins from SDKs, sentry-elixir’s Oban
integration, or
sentry-cli monitors run. Missed runs and timeouts open incidents. - Uptime: HTTP, TCP, TLS-expiry and heartbeat monitors, plus public or private status pages.
- Logs: structured logs from both SDKs, with search, filters and a live tail.
- Release health: crash-free sessions and users, and adoption.
- Organizations: teams, roles and invites; membership can come from
OIDC or LDAP groups (NEIAM). There are API tokens and a Sentry-shaped
/api/0for project, key and issue management. - Android app: issues, events and monitors, with triage (resolve, ignore, assign; swipes and bulk), paired by scanning a QR from the API tokens page, or signed in with NEIAM, a password or an emailed link.
ROADMAP.md is the design document: the wire contract, the architecture, and what each slice built, as built.
Develop
Postgres runs from compose.yml on host port 5437. You need Elixir 1.20+,
and a Rust toolchain for the NIFs in native/, which Rustler builds from
source.
podman compose up -d # Postgres 17
mix setup # deps, database, assets
mix phx.server # http://localhost:4000
Registration is invite-only. Make the first account’s invite with
mix vigil.invite, then create an organization and a project in the UI.
To see events arrive without wiring up an app:
mix vigil.test ORG PROJECT # an error and a message
mix vigil.test ORG PROJECT --kind transaction -n 50 # traces for Performance
mix vigil.test ORG PROJECT --http # through the HTTP edge
mix precommit runs the compiler with warnings as errors, the formatter
and the tests. Tests that drive the real SDKs and CLIs (sentry-python,
sentry-elixir, sentry-cli, vgl) skip themselves when those aren’t
present. Point them at checkouts with SENTRY_PYTHON_PATH,
SENTRY_ELIXIR_PATH and SENTRY_CLI.
Use it
Create a project and copy its DSN. Then configure the SDK as you would for Sentry:
config :sentry, dsn: "https://<key>@vigil.example.com/<project>"
sentry_sdk.init(dsn="https://<key>@vigil.example.com/<project>")
For sentry-cli, make a token under Settings → API tokens and set
SENTRY_URL, SENTRY_AUTH_TOKEN, SENTRY_ORG and SENTRY_PROJECT.
The vgl CLI
cli/ is a command-line client for the same API: projects, keys and DSNs,
issues, releases, monitors and uptime. It’s built like gitgud’s gg and
packaged as .deb and .rpm by CI.
cd cli && cargo build --release
vgl login --url https://vigil.example.com
vgl projects create web --team backend
vgl dsn
See cli/README.md.
The Android app
android/ is a phone client: issues across an organization or a
project, each one’s latest event and stack trace, and the cron and uptime
monitors; issues can be resolved, ignored and assigned there (swipe, or
long-press for several). To pair a phone, tick Mobile app when making
a token under Settings → API tokens (and Read-only for a phone
that only looks) and scan the QR that appears; revoking the token signs
the phone out. Phones paired before triage have a read-only token: pair
them again with a new one. CI publishes signed builds to the forge’s
F-Droid repository. See android/README.md.
The app can also sign in with NEIAM (OIDC in the system browser, with
PKCE) or by email (a sign-in link, or a password), through /api/v1/auth/*;
each way in yields a token of the Mobile app bundle (reading and triage). Emailed sign-in links open the
app when it is installed. The API, the security decisions and the deploy
notes (ANDROID_CERT_FINGERPRINTS, /.well-known/assetlinks.json,
APP_LOGIN_REDIRECT_URI) are in docs/app-login.md.
Deploy
One OCI image: podman build --format docker -t vigil ., or docker build.
It needs Postgres and nothing else. docs/deploy.md
covers the release commands (bin/migrate, bin/invite, bin/token),
health and metrics endpoints, storage (local or S3), mail, clustering,
retention, and every environment variable.
CI (.forgejo/workflows/) runs on pushes to master:
- checks: cargo fmt, clippy and tests, then
mix precommit; - an osv-scanner audit;
- the image build;
- the
vglpackages; - the Android app’s tests, and on
masterits signed APK, published to the forge’s F-Droid repository (it needs theANDROID_KEYSTOREandANDROID_KEYSTORE_PASSsecrets, and skips without them).
License
AGPL-3.0 (LICENSE). Vigil ports code from GlitchTip (MIT), the 2019 BSD release of Sentry, sentry-cli (BSD-3) and others. NOTICE.md lists them with their licenses.