Skip to content

Move Grafana and VictoriaMetrics to standard ZFS appdata and Restic - #521

Merged
edgard merged 1 commit into
masterfrom
codex-telemetry-existing-storage
Nov 21, 2026
Merged

edgard merged 1 commit into
masterfrom
codex-telemetry-existing-storage

Conversation

@edgard

@edgard edgard commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Use the existing zfs-appdata StorageClass for Grafana (1 GiB) and VictoriaMetrics (64 GiB). Both Recreate deployments stop the old writer, verify the original read-only source by dataset identity, compare the copy and publish the completed data directory atomically. The original claims remain available for recovery through acceptance.

The new daily platform-system Restic job captures the live SQLite database and a native VictoriaMetrics snapshot. Each run stages its own files, checks the repository ID and mounts the staging directories read-only in the Restic container. Foundation and cold recovery now cover both claims. The default class also includes them in hourly ZFS snapshots.

Validation — task fmt, task check and the focused wiki test passed. All 28 offline tests passed. Targeted Helm rendering verified bound source name, new claim names, init mounts and restart handling. Disposable migration tests covered source mismatch, retries and preserved database journal content. The production restore filters selected both new claims. After merge, verify the pre-migration sample, Grafana share, backup snapshot and scratch restore before pruning original volumes and class in a separate PR.

Wiki — updated storage, backup and recovery, monitoring, app pages and the wiki log. November's semantic review is already recorded.

@edgard
edgard merged commit aef0bd7 into master Nov 21, 2026
4 checks passed
@edgard
edgard deleted the codex-telemetry-existing-storage branch November 21, 2026 23:26
edgard added a commit that referenced this pull request Nov 21, 2026
After #521, Grafana and VictoriaMetrics both became healthy on their new
zfs-appdata claims. Remove the source-only PVCs, zfs-telemetry
StorageClass, and temporary copy init containers. Keep the new claims
and their data subpaths, Restic backup and hourly ZFS snapshots.

**Deployment evidence**

- Both copy init containers completed; the Grafana uptime share returned
200 and VictoriaMetrics returned a kubelet sample from before migration.
- Ran the production platform-system-backup CronJob once and restored
its snapshot into an isolated emptyDir. Restic verified 256 files. The
restored Grafana SQLite database passed its integrity check and
contained user records. A fresh VictoriaMetrics process opened the
restored data and returned the historical kubelet sample.
- Removed both temporary verification Jobs after success. Gatus
continues to send production notifications during comparison.
- `task fmt` and `task check` passed locally (49 applications, 81 raw
manifest files, 28 offline tests). Reviewed the storage page, restore
runbook and Wiki log. After reconciliation verify both source datasets
and the obsolete class are gone, and both new claims and applications
remain healthy.
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