Skip to content

feat(dashboard): redesign the Grafana dashboard around health and backup size - #7

Merged
mahdidarabi merged 1 commit into
mainfrom
feat/dashboard-redesign
Dec 2, 2026
Merged

mahdidarabi merged 1 commit into
mainfrom
feat/dashboard-redesign

Conversation

@mahdidarabi

Copy link
Copy Markdown
Collaborator

Redesigns charts/karkive/dashboards/karkive.json for the 0.7.0 size metrics and makes it readable in both Grafana themes.

  • Health row: six status tiles (failed last jobs, not ready, stale, size drops, oldest success, no finished job). Zero shows a green check and a word; a count turns amber or red.
  • Inventory: Backups and Restores ready / total, suspended, bytes stored per run, slowest last job, in neutral text.
  • Last job per CR: adds a Last object column (size of status.lastObject); outcome cells carry an icon and a status color, kind cells a ▲/▼ marker in the kind color.
  • Backup size (new row): last stored object over time (step line) and each Backup's share of its 7-day maximum, amber under 50% like KArkiveBackupSizeDrop.
  • Trends: duration and time since last success, colored by kind, with amber (8h) and red (36h) bands.
  • Colors: blue #257de0 Backup, orange #e0621f Restore (CVD-validated pair), green #14983a / amber #bf7a00 / red #dc3c3d only for status, gray #858d9c for neutral values. Each clears 3:1 on Grafana light #ffffff and dark #181b1f.

Every query was run against a live Prometheus with 44 CRs on three clusters, and the chart was rendered with and without sourceLabel to confirm every selector and aggregation keeps the source label. The landing page preview gains the size-drop tile, a last object column and the size alert.

…kup size

The first row is now six status tiles (failed last jobs, not ready, stale, size drops, oldest success, no finished job) that show a green check at zero and turn amber or red with a count. Inventory counts follow, then one table row per CR with the size of the last stored object, the outcome timelines, a new backup size row (last stored object over time and each Backup's share of its 7-day maximum, the KArkiveBackupSizeDrop signal) and the duration and age trends with aging and stale bands.

Colors carry one meaning each and pass 3:1 on both Grafana themes: blue Backup and orange Restore (validated for color-vision deficiency), green, amber and red only for status, gray for neutral counts. Every query keeps the label sets the chart's sourceLabel rewrite relies on.

The landing page preview gains the size-drop tile, a last object column and the new alert.
@mahdidarabi
mahdidarabi merged commit e767d75 into main Dec 2, 2026
3 checks passed
@mahdidarabi
mahdidarabi deleted the feat/dashboard-redesign branch December 2, 2026 00:17
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