Skip to content

fix(collector): harden metrics publishing, megaraid dedup, mobile drives tab, MX500 profile#586

Merged
Starosdev merged 20 commits into
masterfrom
develop
Jun 1, 2026
Merged

fix(collector): harden metrics publishing, megaraid dedup, mobile drives tab, MX500 profile#586
Starosdev merged 20 commits into
masterfrom
develop

Conversation

@Starosdev
Copy link
Copy Markdown
Owner

Summary

  • Harden metrics collector API publishing (retry/connection handling) (SCR-582)
  • Fix collector error from megaraid duplicate scan paths (SCR-580)
  • Fix mobile drives tab redirect on phones (SCR-583)
  • Add Crucial MX500 4TB ATA profile match (SCR-581)
  • Address SonarQube findings

Linked Issues

Closes #582
Closes #580
Closes #583

Test plan

  • CI green on develop
  • Collector handles megaraid duplicate scan paths without error
  • Metrics publishing recovers from connection refused
  • Mobile drives tab loads correctly on phone viewport

Starosdev and others added 17 commits May 28, 2026 17:40
…o omnibus compose

The environment section was nested under volumes (6-space indent) instead
of being a service-level key (4-space indent). Uncommented lines would
have been parsed as volume entries and rejected by Compose.

Also adds COLLECTOR_BTRFS_CRON_SCHEDULE and COLLECTOR_BTRFS_RUN_STARTUP
to the commented-out environment examples, and a note about bind-mounting
host Btrfs volume paths for platforms like Synology DSM.
When smartctl --scan returns a device entry with an empty name, the
collector would construct the path as "/dev/" and invoke smartctl with
that invalid path, producing a fatal error and halting collection for
the host. Filter out empty-named entries in TransformDetectedDevices
with a warning log, and add a secondary guard in SmartCtlInfo.
The flag was missing from the CLI definition; detect.go already reads
host.id from config to generate deterministic array IDs.
treo-card sets display:flex (row) but stat cards need column direction
for label/value to stack vertically. Affects BTRFS filesystem detail,
ZFS pool detail, and drive performance metric cards. Fixes #572.
)

Reject devices with no identifying information (device_name, model_name,
serial_number, and wwn all empty) in RegisterDevice, preventing the creation
of blank orphan rows with a deterministic UUID from all-empty inputs.

Add migration m20260528000000 to remove any existing orphan blank rows left
by previous collector runs or backfill migrations.
fix(collector): add --host-id flag to MDADM collector (SCR-573)
…e-rows

fix(database): prevent orphan blank device rows after registration (#567)
@Starosdev Starosdev added the bug Something isn't working label Jun 1, 2026
Starosdev and others added 3 commits June 1, 2026 10:58
# Conflicts:
#	webapp/backend/pkg/thresholds/consumer_drive_profiles_test.go
Convert heavy value params to pointers (gocritic hugeParam), reorder
struct fields (govet fieldalignment), and remove err variable shadowing
(govet shadow). No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Explicitly discard ignored errors from SmartCtlInfo and populateUdevInfo
(errcheck) and fix comment spacing (gocritic). Linux-only file not caught
by darwin lint runs.
@Starosdev Starosdev merged commit 6469511 into master Jun 1, 2026
22 checks passed
Starosdev pushed a commit that referenced this pull request Jun 1, 2026
## [1.62.2](v1.62.1...v1.62.2) (2026-06-01)

### Bug Fixes

* **collector:** harden metrics publishing, megaraid dedup, mobile drives tab, MX500 profile ([#586](#586)) ([6469511](6469511)), closes [#582](#582) [#580](#580) [#583](#583)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Mobile view and Drives tab [BUG] Connection refused while publishing SMART data [BUG] Collector error with megaraid devices

1 participant