Skip to content

HDDS-15312. Improve VolumeInfoMetrics to include MinFreeSpace and Non-Ozone used space#10304

Open
priyeshkaratha wants to merge 1 commit into
apache:masterfrom
priyeshkaratha:HDDS-15312
Open

HDDS-15312. Improve VolumeInfoMetrics to include MinFreeSpace and Non-Ozone used space#10304
priyeshkaratha wants to merge 1 commit into
apache:masterfrom
priyeshkaratha:HDDS-15312

Conversation

@priyeshkaratha
Copy link
Copy Markdown
Contributor

@priyeshkaratha priyeshkaratha commented May 19, 2026

What changes were proposed in this pull request?

Min Free Space and Non-Ozone Used Space metrics are not available in JMX. Also, Total Capacity and Filesystem Capacity represent the same value, so there is no need to expose both fields separately. Therefore, we are removing the Total Capacity field and added Min Free Space and Non-Ozone Used Space metrics.

What is the link to the Apache JIRA

HDDS-15312

How was this patch tested?

Updated unit testcase.
Also tested manually

bash-5.1$ curl -XGET http://ozone-datanode-1:9882/jmx?qry=Hadoop:service=HddsDatanode,name=VolumeInfoMetrics-/data/hdds
{
  "beans" : [ {
    "name" : "Hadoop:service=HddsDatanode,name=VolumeInfoMetrics-/data/hdds",
    "modelerType" : "VolumeInfoMetrics-/data/hdds",
    "tag.Context" : "ozone",
    "tag.StorageType" : "DISK",
    "tag.DatanodeUuid" : "2ee1eb0b-1929-4108-962c-0507cdd19da3",
    "tag.VolumeType" : "DATA_VOLUME",
    "tag.StorageDirectory" : "/data/hdds/hdds",
    "tag.VolumeState" : "NORMAL",
    "tag.Hostname" : "67088f32a63b",
    "AvailableSpaceInsufficient" : 0,
    "DbCompactLatencyNumOps" : 0,
    "DbCompactLatencyAvgTime" : 0.0,
    "NumContainerCreateRequestsInSoftBandMinFreeSpace" : 0,
    "NumContainerCreateRequestsRejectedHardMinFreeSpace" : 0,
    "NumScans" : 1,
    "NumScansSkipped" : 0,
    "NumWriteRequestsInSoftBandMinFreeSpace" : 0,
    "NumWriteRequestsRejectedHardMinFreeSpace" : 0,
    "ReservedCrossesLimit" : 1,
    "Committed" : 0,
    "LayoutVersion" : 1,
    "Containers" : 0,
    "OzoneCapacity" : 105076655700,
    "OzoneAvailable" : 88516947968,
    "OzoneUsed" : 4382720,
    "Reserved" : 10508716,
    "FilesystemCapacity" : 105087164416,
    "FilesystemAvailable" : 88516947968,
    "FilesystemUsed" : 4382720,
    "MinFreeSpace" : 104857600,
    "NonOzoneUsed" : 16565833728
  } ]
}

@priyeshkaratha priyeshkaratha marked this pull request as ready for review May 19, 2026 05:18
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