No description
  • Go 66.3%
  • JavaScript 27.7%
  • CSS 3.8%
  • Go Template 1.8%
  • HTML 0.4%
Find a file
2026-11-16 21:47:35 +01:00
backend Add per-tenant OpenID Connect SSO (slug login URL, auto-create members) 2026-11-16 21:25:34 +01:00
container Fix blank page during rolling updates: asset retry, cache headers, rollout strategy, optional sticky sessions 2026-11-16 21:47:35 +01:00
deploy/helm/pager Fix blank page during rolling updates: asset retry, cache headers, rollout strategy, optional sticky sessions 2026-11-16 21:47:35 +01:00
docs Fix blank page during rolling updates: asset retry, cache headers, rollout strategy, optional sticky sessions 2026-11-16 21:47:35 +01:00
frontend Fix blank page during rolling updates: asset retry, cache headers, rollout strategy, optional sticky sessions 2026-11-16 21:47:35 +01:00
.dockerignore Allow esbuild build script for pnpm, fix frontend Dockerfile 2026-11-16 20:23:02 +01:00
.gitignore Add Docusaurus docs with Playwright screenshots; build and publish to GitLab Pages in CI 2026-11-16 20:32:39 +01:00
.gitlab-ci.yml Add Docusaurus docs with Playwright screenshots; build and publish to GitLab Pages in CI 2026-11-16 20:32:39 +01:00
Dockerfile.backend Allow esbuild build script for pnpm, fix frontend Dockerfile 2026-11-16 20:23:02 +01:00
Dockerfile.frontend Allow esbuild build script for pnpm, fix frontend Dockerfile 2026-11-16 20:23:02 +01:00
README.md Link docs in README 2026-11-16 20:40:45 +01:00
renovate.json fix for playwright 2026-11-16 21:37:04 +01:00

Pager

Docs: https://pager-2607d3.jonasled.dev/

Multi-tenant Opsgenie-like alerting. Go backend (Gin, Gorm, gormigrate, Logrus via go-libs, swaggo) + React PWA with Web Push.

Run

cd frontend && pnpm install && pnpm build      # dev: pnpm dev (proxies /api to :8080)
cd ../backend && cp .env.example .env && go run . # serves API, UI (STATIC_DIR) and /swagger/index.html

Push needs HTTPS (or localhost). VAPID keys are generated once and stored in the DB unless set in env. DB: DB_DRIVER = postgres | mariadb | sqlite, with single DB_HOST/PORT/USER/PASSWORD/NAME entries.

Use

  1. Register at /register → creates tenant + owner. Owner/admins add users in Team.
  2. Team → Inbound shows the Alertmanager URL (/api/ingest/<token>/alertmanager, send_resolved: true) and the generic webhook URL.
  3. Alertmanager firing creates an alert or refreshes it (count + last refresh). resolved closes it. Changed summary/description/label priority (P1–P5) update it; annotation comment adds a comment.
  4. Alerts list shows open-since, refresh count and last refresh. Assign, ack, close, comment in UI or from the notification buttons.

Regenerate API docs after changing annotations: cd backend && swag init --parseInternal -g main.go

Docs

Docusaurus site in docs/ (cd docs && pnpm install && pnpm start). Screenshots are not committed: CI starts the real app, seeds demo data and takes them with Playwright (pnpm screenshots) on every run, then publishes the site to GitLab Pages from the default branch.