feat: Add base HTML template and implement dashboard, logs, and service views

- Created a base HTML template for consistent layout across pages.
- Developed a dashboard page to display backup service metrics and statuses.
- Implemented a log viewer for detailed log file inspection.
- Added error handling page for better user experience during failures.
- Introduced service detail page to show specific service metrics and actions.
- Enhanced log filtering and viewing capabilities.
- Integrated auto-refresh functionality for real-time updates on metrics.
- Created integration and unit test scripts for backup metrics functionality.
This commit is contained in:
Peter Wood
2025-06-18 08:06:08 -04:00
parent d066f32b10
commit 6d726cb015
34 changed files with 6006 additions and 26 deletions

View File

@@ -0,0 +1,13 @@
{
"service": "immich",
"description": "Immich photo management backup",
"backup_path": "/mnt/share/media/backups/immich",
"status": "running",
"start_time": "2025-06-18T05:10:00-04:00",
"start_timestamp": 1750238400,
"current_operation": "Backing up database",
"files_processed": 1,
"total_size_bytes": 524288000,
"last_updated": "2025-06-18T05:12:15-04:00",
"hostname": "book"
}

View File

@@ -0,0 +1,17 @@
{
"service": "media-services",
"description": "Media services backup (Sonarr, Radarr, etc.) - Remote servers",
"backup_path": "/mnt/share/media/backups",
"status": "partial",
"start_time": "2025-06-18T01:30:00-04:00",
"start_timestamp": 1750235400,
"end_time": "2025-06-18T01:32:45-04:00",
"end_timestamp": 1750235565,
"duration_seconds": 165,
"current_operation": "Remote services - check individual service URLs",
"files_processed": 0,
"total_size_bytes": 0,
"message": "Media services are running on remote servers. Access them directly via their individual URLs. Local backup may be limited.",
"last_updated": "2025-06-18T01:32:45-04:00",
"hostname": "book"
}

17
metrics/plex_status.json Normal file
View File

@@ -0,0 +1,17 @@
{
"service": "plex",
"description": "Plex Media Server backup",
"backup_path": "/mnt/share/media/backups/plex",
"status": "success",
"start_time": "2025-06-18T02:00:00-04:00",
"start_timestamp": 1750237200,
"end_time": "2025-06-18T02:05:30-04:00",
"end_timestamp": 1750237530,
"duration_seconds": 330,
"current_operation": "Completed",
"files_processed": 3,
"total_size_bytes": 1073741824,
"message": "Backup completed successfully",
"last_updated": "2025-06-18T02:05:30-04:00",
"hostname": "book"
}