Skip to content

feat(os): provision Grafana dashboards from GitHub at build time - #32

Open
keskad wants to merge 1 commit into
mainfrom
feat/grafana-dashboard-provisioning
Open

feat(os): provision Grafana dashboards from GitHub at build time#32
keskad wants to merge 1 commit into
mainfrom
feat/grafana-dashboard-provisioning

Conversation

@keskad

@keskad keskad commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Provision VictoriaMetrics as the default Grafana datasource with a stable uid: victoriametrics
  • Add Grafana file provider pointing at /data/etc/grafana/dashboards (runtime path on the hub)
  • Fetch dashboard JSON from dcc-bigfred/bigfred and dcc-bigfred/microinit at image build time via fetch-dashboards.sh (BIGFRED_REF / MICROINIT_REF from VERSIONS)
  • Seed stock dashboards into $DATA_DIR/etc/grafana/dashboards on every boot (overwrite image-managed files, keep operator-added JSON)

Test plan

  • os/package/grafana/fetch-dashboards.sh master main /tmp/test downloads 7 JSON files
  • make image succeeds with Grafana enabled
  • On a flashed hub: Grafana :3000 shows VictoriaMetrics datasource and bigfred / microinit dashboard folders
  • Dropping a custom *.json into /data/etc/grafana/dashboards/ is picked up within ~30s (or after Grafana restart)

Made with Cursor

Wire VictoriaMetrics and file-based dashboard loading so the hub ships
with stock observability UI out of the box without manual import.

Co-authored-by: Cursor <cursoragent@cursor.com>
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