Skip to content

Support NAS API#249

Open
shackerd wants to merge 3 commits intomainfrom
add-nas
Open

Support NAS API#249
shackerd wants to merge 3 commits intomainfrom
add-nas

Conversation

@shackerd
Copy link
Copy Markdown
Owner

@shackerd shackerd commented Mar 5, 2026

This pull request introduces support for NAS (Network Attached Storage) metrics in the Freebox exporter. It adds configuration and documentation for enabling NAS metrics, updates the capabilities and configuration structures, and integrates the new NAS metrics into the metric mapping system. The version is also bumped to reflect these new features.

NAS Metrics Support

  • Added NAS metrics support, exposing detailed disk and partition information via the Freebox Storage API. This includes metrics for storage capacity, disk state, temperature, power management, hardware and physical info, performance, and partition usage and health. [1] [2]
  • Updated documentation (README.md) to describe the new NAS metrics, configuration options, and example output. [1] [2] [3]
  • Updated example configuration files to include the new nas = true option.

Capabilities and Configuration Updates

  • Added nas field to capabilities and configuration structs, and ensured it is always available in the capabilities agent. [1] [2] [3]
  • Updated configuration tests to include the new nas field and adjusted expected values accordingly. [1] [2] [3] [4] [5] [6]

Metric Mapping Integration

  • Integrated NAS metrics into the main metric mapping logic, including checks for configuration and capability compatibility, and added warnings for missing or incompatible NAS configuration. [1] [2]

Other Changes

  • Bumped the crate version to 0.0.25 to reflect the new feature.
  • Minor cleanup in CLI and configuration code. [1] [2]

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