{"repo":"ljmerza/snapraid-collector","free":true,"listed":false,"github":"https://github.com/ljmerza/snapraid-collector","clone":"git clone https://github.com/ljmerza/snapraid-collector.git","description":"snapraid-collector for prometheus metrics for snapraid smart, sync, and scrub commands","language":"Shell","stars":11,"topics":["node-exporter","prometheus","prometheus-exporter","snapraid"],"license":"MIT","category":"analytics","readme_excerpt":"SnapRAID Metrics Collector SnapRAID's built-in reports are great for humans but tricky to scrape. This collector wraps the native snapraid CLI, parses the important bits from smart , scrub , and sync , and emits Prometheus-compatible metrics via the node-exporter textfile collector. You can find this dashboard here Highlights - Opinionated CLI with per-command defaults, dry-run mode, and pluggable snapraid binary. - Deterministic logging: timestamped run logs in logs/ plus smart.log / scrub.log / sync.log symlinks. - Optional live verbosity and label redaction for serial numbers/devices. - Durable metrics buffer so failed commands still ship status/error gauges. - Extended insight: runtime durations, byte-accurate throughput, per-operation summary counters, SMART warning totals. - Batteries-included tooling: reproducible test fixtures, Makefile helpers, GitHub Actions CI, sample systemd unit, and container image. --- Quick Start The script must run as root (SnapRAID requirement). Use --dry-run or SNAPRAID COLLECTOR SKIP ROOT=true during local experimentation/tests to bypass the root guard. --- Command-Line Reference Commands: smart , scrub , sync . Arguments following a command are passed through to SnapRAID until the next command token. Use -- in between to force literal command names into SnapRAID. Option Purpose ------ ------- --textfile PATH Atomically write metrics to PATH (promotes textfile collector friendly output). --snapraid-bin PATH Point at an alternate snapraid b","default_branch":null,"files":null,"tree":[],"storefront":"/r/ljmerza","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ljmerza/snapraid-collector/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}