[ 
https://issues.apache.org/jira/browse/CASSSIDECAR-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francisco Guerrero updated CASSSIDECAR-366:
-------------------------------------------
    Source Control Link: 
https://github.com/apache/cassandra-sidecar/commit/fa9439b8d4ed3f35f3aafafea4ac238097165dc6
             Resolution: Fixed
                 Status: Resolved  (was: Ready to Commit)

> Add System Disk Information Endpoint to Cassandra Sidecar
> ---------------------------------------------------------
>
>                 Key: CASSSIDECAR-366
>                 URL: https://issues.apache.org/jira/browse/CASSSIDECAR-366
>             Project: Sidecar for Apache Cassandra
>          Issue Type: New Feature
>          Components: Rest API
>            Reporter: n.v.harikrishna
>            Assignee: n.v.harikrishna
>            Priority: Normal
>             Fix For: 0.3
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Want to introduce a new REST API endpoint to retrieve system disk 
> information, providing storage capacity and usage metrics for all mounted 
> file systems on the host.
>  
> Use Cases
>  
>   - Monitor disk space across Cassandra nodes
>   - Can be used to alert on low disk space conditions
>   - Helps for capacity planning and operational troubleshooting
>  
> New REST Endpoint:
>  
>   - Path: /api/v1/system/disk-info
>   - Method: GET
>   - Authorization: Requires SYSTEM permission (a new permission that will be 
> added)
>   - Response: JSON array of disk information objects
>  
> Sample Response:
> {noformat}
>   [
>     {
>       "totalSpace": 1000000000000,
>       "freeSpace": 500000000000,
>       "usableSpace": 450000000000,
>       "name": "data1",
>       "mount": "/dev/sda1",
>       "type": "ext4"
>     }
>   ]
> {noformat}
> Proposing to add OSHI library as a dependency to fetch the disk information. 
> OSHI is a free JNA-based (native) Operating System and Hardware Information 
> library for Java. It provides a cross-platform implementation to retrieve 
> system information such as OS version, processes, memory and CPU usage, disks 
> and partitions, devices, and sensors without requiring additional native 
> libraries. This library uses the MIT License.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to