You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于通过oVirt REST API获取Virtual Disk/VM READ/WRITE IOPS的咨询

Can I Get READ/WRITE IOPS for Virtual Disks/VMs via oVirt REST API?

Hey Harry, great question—yes, you absolutely can retrieve READ/WRITE IOPS metrics for your virtual disks and VMs using the oVirt REST API! Here’s how to go about it:

  • Virtual Disk-level IOPS: You can fetch per-disk IOPS by targeting the statistics endpoint for a specific disk. Send a GET request to:

    /api/vms/{vm_id}/disks/{disk_id}/statistics
    

    In the response, look for metrics named read_iops (number of read operations per second) and write_iops (number of write operations per second). Each metric will include a values array with the latest statistical data points.

  • VM-level total IOPS: If you want aggregated IOPS across all disks attached to a VM, you can query the VM’s own statistics endpoint:

    /api/vms/{vm_id}/statistics
    

    Here, look for total_read_iops and total_write_iops—these roll up the IOPS from all disks associated with the VM.

A few quick notes to keep in mind:

  • Ensure you have the necessary permissions (like VmStats or DiskStats) to access these statistics.
  • Most recent oVirt versions (4.2+) support these metrics, but double-check your API documentation if you’re on an older release.
  • Statistical data is typically refreshed at regular intervals (default is a few seconds), so you might need to poll the endpoint if you need real-time updates.

内容的提问来源于stack exchange,提问作者Coder

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 04:20:22