You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Francisco Guerrero (Jira)" <ji...@apache.org> on 2025/12/07 18:51:00 UTC
[jira] [Commented] (CASSSIDECAR-366) Add System Disk Information Endpoint to Cassandra Sidecar
[ https://issues.apache.org/jira/browse/CASSSIDECAR-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043400#comment-18043400 ]
Francisco Guerrero commented on CASSSIDECAR-366:
------------------------------------------------
+1 thanks for the patch
> 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: 50m
> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org