You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the "github.com/ceph/go-ceph/rados" Go library provides a convenient way to interact with Ceph, including retrieving pool statistics using the GetPoolStats method. However, the Num_bytes_available field is missing in the retrieved pool statistics.
In the current PoolStat struct, there is a Num_bytes field that represents the space used in bytes, but there is no corresponding field representing the available space (Num_bytes_available).
This feature request proposes the addition of support for the Num_bytes_available field in the PoolStat struct and the corresponding GetPoolStats method. Including the Num_bytes_available field is important for users who want to have comprehensive insights into the pool's status, including both used and available capacity.
Proposed Changes
Modify the Ceph C library to include support for retrieving the Num_bytes_available field in pool statistics.
Update the Go bindings in "github.com/ceph/go-ceph/rados" to expose this new functionality to Go code by extending the PoolStat struct to include a Num_bytes_available field.
Ensure comprehensive testing to verify the correct retrieval of the Num_bytes_available field.
Update the documentation to include information about how to use the new Num_bytes_available functionality.
Use Case
The addition of the Num_bytes_available field will benefit users who need to monitor and manage Ceph pools, especially when making decisions based on available capacity.
Community Impact
This enhancement will improve the completeness and usability of the "github.com/ceph/go-ceph" library and benefit the broader Ceph community.
Additional Information
Current PoolStat struct definition:
typePoolStatstruct {
// space used in bytesNum_bytesuint64// space used in KBNum_kbuint64// number of objects in the poolNum_objectsuint64// number of clones of objectsNum_object_clonesuint64// num_objects * num_replicasNum_object_copiesuint64Num_objects_missing_on_primaryuint64// number of objects found on no OSDsNum_objects_unfounduint64// number of objects replicated fewer times than they should be// (but found on at least one OSD)Num_objects_degradeduint64Num_rduint64Num_rd_kbuint64Num_wruint64Num_wr_kbuint64
}
The text was updated successfully, but these errors were encountered:
Thanks for the request, I agree that this would probably be a useful enhancement.
Modify the Ceph C library to include support for retrieving the Num_bytes_available field in pool statistics.
This step is a prerequisite to having the field available in Go. If you haven't already please file a ceph tracker issue (https://tracker.ceph.com) for this. Then link that tracker here so we all can monitor it. Once the field is available in Ceph, then we can look into adding it in go-ceph.
Description
Currently, the "github.com/ceph/go-ceph/rados" Go library provides a convenient way to interact with Ceph, including retrieving pool statistics using the
GetPoolStats
method. However, theNum_bytes_available
field is missing in the retrieved pool statistics.In the current
PoolStat
struct, there is aNum_bytes
field that represents the space used in bytes, but there is no corresponding field representing the available space (Num_bytes_available
).This feature request proposes the addition of support for the
Num_bytes_available
field in thePoolStat
struct and the correspondingGetPoolStats
method. Including theNum_bytes_available
field is important for users who want to have comprehensive insights into the pool's status, including both used and available capacity.Proposed Changes
Num_bytes_available
field in pool statistics.PoolStat
struct to include aNum_bytes_available
field.Num_bytes_available
field.Num_bytes_available
functionality.Use Case
The addition of the
Num_bytes_available
field will benefit users who need to monitor and manage Ceph pools, especially when making decisions based on available capacity.Community Impact
This enhancement will improve the completeness and usability of the "github.com/ceph/go-ceph" library and benefit the broader Ceph community.
Additional Information
Current
PoolStat
struct definition:The text was updated successfully, but these errors were encountered: