Description of problem: The Calculated.DiskSpaceUsedPercentage metric in StorageServiceComponent is calculated incorrectly. It is reporting the percentage of the entire file system used whereas it should be reporting the percentage of the file system used by Cassandra's data directories. The description for Calculated.DiskSpaceUsedPercentage says that it also takes into account the installation path. The metric does not actually do this, nor do I think it should. StorageServiceComponent does not need to calculate the disk space used by the data directories. We can obtain that value from the Load metric reported by StorageServiceMBean. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Updated the way this percentage is calculated. It is now based on the overall disk space available for the data file locations rather than just the one with the max utilization. Also, added a new metric for the total space used by Cassandra files.