Red Hat Bugzilla – Bug 980245
Calculated.DiskSpaceUsedPercentage metric in Cassandra plugin reports incorrect value
Last modified: 2014-03-25 16:55:37 EDT
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):
Steps to Reproduce:
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.