Skip to content

HDDS-14533. Include filesystem metrics in storage Distribution endpoint#9700

Merged
devmadhuu merged 3 commits intoapache:masterfrom
priyeshkaratha:HDDS-14533
Feb 4, 2026
Merged

HDDS-14533. Include filesystem metrics in storage Distribution endpoint#9700
devmadhuu merged 3 commits intoapache:masterfrom
priyeshkaratha:HDDS-14533

Conversation

@priyeshkaratha
Copy link
Contributor

What changes were proposed in this pull request?

This pull request enhances the StorageDistributionEndpoint by incorporating detailed filesystem usage metrics, including capacity, available, and used space, into the datanode storage reports. Current report gives zero values.

  • Filesystem Metrics Integration: This pull request integrates filesystem-level capacity, available, and used space metrics into the DatanodeStorageReport object, providing a more granular view of storage.

  • Storage Distribution Endpoint Enhancement: The StorageDistributionEndpoint has been updated to retrieve and include these new filesystem metrics when generating storage reports for individual datanodes.

What is the link to the Apache JIRA

HDDS-14533

How was this patch tested?

Tested with updated integration tests.

Copy link
Contributor

@siddhantsangwan siddhantsangwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the Recon frontend show data from the storage distribution endpoint yet? If yes, it's worth checking whether Recon is showing the new fs stats correctly.

assertEquals(report.getRemaining(), scmReport.getRemaining());
assertEquals(report.getUsed(), scmReport.getUsed());
assertEquals(report.getCommitted(), scmReport.getCommitted());
assertEquals(report.getFilesystemAvailable(), scmReport.getFsAvailable());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick for future pull requests: Since scmReport is the correct expected value, it should be the first argument in assertEquals.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed.

@priyeshkaratha
Copy link
Contributor Author

@siddhantsangwan Thanks for the review

Does the Recon frontend show data from the storage distribution endpoint yet? If yes, it's worth checking whether Recon is showing the new fs stats correctly.

Currently these information is not used in Capacity page. It will included in the UI as part of https://issues.apache.org/jira/browse/HDDS-14552

Copy link
Contributor

@siddhantsangwan siddhantsangwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending CI.

@priyeshkaratha priyeshkaratha marked this pull request as ready for review February 3, 2026 08:37
Copy link
Contributor

@devmadhuu devmadhuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @priyeshkaratha for the patch. LGTM +1

@devmadhuu
Copy link
Contributor

Thank you @siddhantsangwan for the review and thanks @priyeshkaratha for the patch.

@devmadhuu devmadhuu merged commit 377b67f into apache:master Feb 4, 2026
56 checks passed
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.

3 participants