Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentinel Backend

Sentinel is a self-hosted error tracking, uptime, and monitoring platform, compatible with the open-source sentry-sdk client libraries.


🙏 Credit where it's due — Sentinel is built on GlitchTip

Sentinel is a fork of GlitchTip. Essentially all of the engineering underneath this project — the ingest pipeline, event processing, issue grouping, storage model, API, and the Angular frontend — is the work of the GlitchTip team and its contributors, released under the MIT License.

We did not build an error tracker from scratch. We took an excellent one and added a few features on top. If Sentinel is useful to you, the credit belongs upstream.

Please support GlitchTip:

Donate to GlitchTip using Liberapay

GlitchTip is itself a partial fork / re-implementation of Sentry's codebase from when it was open source, and remains API-compatible with the MIT-licensed sentry-sdk clients. Credit for that lineage goes to the Sentry team as well — see NOTICE.md.

Sentinel is not affiliated with, endorsed by, or supported by GlitchTip or Sentry. Please do not report Sentinel issues to them.


GlitchTip vs Sentinel — what's actually different

Everything GlitchTip does, Sentinel does, because it is GlitchTip underneath. The table below is the honest delta — a small set of additions, not a rewrite.

Capability GlitchTip Sentinel
Error tracking, issue grouping, stack traces ✅ ✅ (unchanged)
Uptime monitoring ✅ ✅ (unchanged)
Performance / transactions, Logs, Releases ✅ ✅ (unchanged)
Email + webhook alerts (Discord, Teams, Slack-compatible, Google Chat, ntfy, Zulip, Feishu) ✅ ✅ (unchanged)
Telegram alerts ❌ ✅ added
AI root-cause analysis (bring your own OpenAI / Gemini / Claude key) ❌ ✅ added
SSL certificate expiry alerts ❌ ✅ added
Stats & Usage page (accepted / rate-limited / invalid event counts) ❌ ✅ added
Cron / heartbeat monitoring ⚠️ basic monitor type ✅ extended — grace period, enable toggle, dedicated ping endpoint, status UI
Branding GlitchTip Sentinel

Details on the additions

  • Telegram alerts — a Telegram recipient type alongside the existing webhook channels. Supply a bot token from @BotFather and a chat ID.
  • AI root-cause analysis — an on-demand "Explain this error" panel on issue pages. You configure one provider (OpenAI, Google Gemini, or Anthropic Claude) with your own API key. It never runs automatically on ingest, and results are cached per issue, so it cannot quietly drain your credits.
  • Cron / heartbeat monitoring — a dead-man's switch for scheduled jobs. Your cron job curls a ping URL; if the check-in doesn't arrive within the expected period plus a grace window, Sentinel alerts you. Catches jobs that fail silently, which error tracking cannot.
  • SSL expiry alerts — certificate expiry is read from the TLS handshake the uptime check already performs (no extra requests), with a configurable warning threshold and one alert per certificate.

All of the above reuse GlitchTip's existing alert-delivery machinery rather than introducing a parallel notification system.


Quick start (self-hosting)

cp .env.example .env
openssl rand -base64 48    # paste the result into SECRET_KEY in .env
docker compose up -d

Open http://localhost:8000 — the first user to register becomes the admin. See release/README.md for the full self-hosting guide.

Developing

This repo is the backend API only. For a working web UI you also need the Sentinel Frontend; without it you'll see TemplateDoesNotExist when opening the site in a browser.

We use Docker for development:

  1. Ensure docker and docker compose are installed
  2. docker compose up (or make start)
  3. docker compose run --rm web ./manage.py migrate (or make migrate)
  4. Clone and run the frontend with npm start — it proxies API requests to the backend automatically

Run tests with make test, view logs with make logs, and make help for more shortcuts. Lint with uv run ruff check .. Dependencies are managed with uv. Minimum Python 3.12; the Docker image uses 3.14.

Notes for contributors

  • The Django project package is sentinel/ (settings module sentinel.settings); environment variables are prefixed SENTINEL_.
  • Three names intentionally still reference GlitchTip and must not be renamed: the glitchtip-rust / gt_rust PyPI dependency, the @glitchtip/ng-charts npm dependency, and the attribution in LICENSE / NOTICE.md.
  • The inbound glitchtip_key query parameter is still accepted so existing GlitchTip installs can migrate without breaking.

Run HTTPS locally for testing FIDO2 keys

  1. cp compose.yml compose.override.yml
  2. Edit the override file and set command: ./manage.py runsslserver 0.0.0.0:8000
  3. Restart docker compose services

Run with advanced partitioning

Using pg_partman requires the extension installed in Postgres. compose.part.yml offers an alternative image. Switching between advanced and default partitioning is not supported.

docker compose -f compose.yml -f compose.part.yml up   # or: make partman-start

Default partitioning uses DATE partitions managed by Django. Advanced partitioning uses nested ORG_ID HASH > DATE partitions managed by pg_partman.

Load testing

Load and A/B benchmarks live in benchmarks/ — see run_ingest_bench.sh (memory growth under sustained load) and run_ingest_ab.sh (Python vs Rust ingest A/B).

Observability metrics with Prometheus

  1. Edit monitoring/prometheus/prometheus.yml and set credentials to a Sentinel auth token
  2. docker compose -f compose.yml -f compose.metrics.yml up

GCP logging

To enable JSON logging:

DJANGO_LOGGING_HANDLER_CLASS=google.cloud.logging_v2.handlers.ContainerEngineHandler

Clean-room policy

Sentinel is API-compatible with Sentry, but Sentry's server code and documentation are not open source (BSL/FSL). Do not read, copy, or reference Sentry's server-side source or docs when contributing. The MIT-licensed Sentry client SDKs are fine to read.

Acknowledgements

  • The GlitchTip team and contributors — for building the platform this project is a fork of. Nearly all of the code here is theirs. Support them on Liberapay.
  • The Sentry team — for their ongoing open source SDK work and the formerly open source backend that GlitchTip is based on.
  • Django — no other web framework is as feature complete.
  • django-ninja / Pydantic — typed, async-first API design.

License

MIT — see LICENSE, which retains the original Copyright (c) 2019 GlitchTip. Additional attribution in NOTICE.md.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages