Skip to content

feat: migrate Grafana to PostgreSQL on glyph#364

Merged
stackptr merged 2 commits intomainfrom
feat/grafana-postgresql
Mar 11, 2026
Merged

feat: migrate Grafana to PostgreSQL on glyph#364
stackptr merged 2 commits intomainfrom
feat/grafana-postgresql

Conversation

@stackptr
Copy link
Owner

@stackptr stackptr commented Mar 11, 2026

Summary

  • Grafana on spore now uses PostgreSQL on glyph via Tailscale (glyph.rove-duck.ts.net:5432) instead of local SQLite
  • Added grafana database, user, and backup entry to glyph's PostgreSQL configuration
  • No secrets needed — PostgreSQL trusts connections from the Tailscale subnet (100.64.0.0/10)

Migration steps

  1. Deploy glyph first to create the grafana database and user
  2. Deploy spore — Grafana will connect to PostgreSQL on startup
  3. Provisioned dashboards and datasources repopulate automatically from Nix config
  4. OIDC users are recreated on first login
  5. No data migration needed unless UI-created dashboards exist (check before deploying)

Test plan

  • Verify grafana.zx.dev loads after deploy
  • Verify OIDC login works
  • Verify provisioned dashboards and datasources are present

🤖 Generated with Claude Code

Configure Grafana on spore to use centralized PostgreSQL on glyph via
Tailscale instead of local SQLite. Add grafana database, user, and
backup to glyph's PostgreSQL configuration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stackptr stackptr force-pushed the feat/grafana-postgresql branch from 0d11234 to 8f42f9a Compare March 11, 2026 20:55
@stackptr stackptr enabled auto-merge (squash) March 11, 2026 21:14
@stackptr stackptr merged commit c4ea44b into main Mar 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant