Repository navigation
Ransomware guard, heartbeat, Prometheus metrics, one-click repair, skip next run, disk power - #28
Merged
Merged
Conversation
…ip next run, disk power What snapraid-daemon offers and SnapRAID UI lacked: - Sync guard for changed files: a scheduled sync is skipped when diff reports more updated files than allowed (default 100 for new schedules), as ransomware leaves them; the notification says so - Heartbeat: a GET to a healthchecks.io or Uptime Kuma URL after every successful scheduled run, so a dead server or failing runs alert - Prometheus metrics at /api/metrics with a bearer token, from cached values only, so a scrape never wakes a disk - Repair and verify: fix -e, then scrub -p bad, with one click - Skip next run of a schedule, once, without a notification - Spin disks up or down by hand, and the temperature with a 30-day trend in the disk table With unit and end-to-end tests and documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JuXnquCPdbG5sBbDyin7yF
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JuXnquCPdbG5sBbDyin7yF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the six features snapraid-daemon 2.0 has and SnapRAID UI lacked.
Features
diffreports more updated files than Max. changed files. The default is 100 for new schedules, the same as the daemon'ssync_threshold_updates.GETto a healthchecks.io, Uptime Kuma or Dead Man's Snitch URL./api/metricsscrape_configsentry.fix -eand thenscrub -p bad(POST /api/snapraid/heal).⋯menu per disk and Spin up/down in the header for the whole array (snapraid up/down,POST /api/snapraid/power).Other changes
executeSnapraidCommandalso returns the exit code.docs/architecture.mdnow also listsPOST /api/schedules/:id/runfrom End-to-end tests against real SnapRAID, snapraid-daemon and the Docker image #26, which was missing.Tests
mkdocs build --strictpasses. Updated pages:scheduling.md,notifications.md(Heartbeat),automation.md(Prometheus metrics with metric list and alert examples)usage.md,architecture.md(API),development.md🤖 Generated with Claude Code
https://claude.ai/code/session_01JuXnquCPdbG5sBbDyin7yF