Getting CPU Utilization null value
ahsan ashraf
muhammad.ahsan991 at gmail.com
Thu Jan 14 13:23:29 UTC 2021
Hi Team,
I have been using openstack apis and have following issue:
- API used: /servers/{server_id}/diagnostics
- API version: v2.1
Problem: Couldn't get utilization value of my server it is showing null
even i have applied stress on the cpu
API Result:
{
"state": "running",
"driver": "libvirt",
"hypervisor": "kvm",
"hypervisor_os": "linux",
"uptime": 10020419,
"config_drive": false,
"num_cpus": 2,
"num_nics": 1,
"num_disks": 2,
"disk_details": [
{
"read_bytes": 983884800,
"read_requests": 26229,
"write_bytes": 7373907456,
"write_requests": 574537,
"errors_count": -1
},
{
"read_bytes": 3215872,
"read_requests": 147,
"write_bytes": 0,
"write_requests": 0,
"errors_count": -1
}
],
"cpu_details": [
{
"id": 0,
"time": 12424380000000,
"utilisation": null
},
{
"id": 1,
"time": 12775460000000,
"utilisation": null
}
],
"nic_details": [
{
"mac_address": "fa:16:3e:0e:c7:f2",
"rx_octets": 943004980,
"rx_errors": 0,
"rx_drop": 0,
"rx_packets": 4464445,
"rx_rate": null,
"tx_octets": 785254710,
"tx_errors": 0,
"tx_drop": 0,
"tx_packets": 4696786,
"tx_rate": null
}
],
"memory_details": {
"maximum": 2,
"used": 2
}
}
Regards,
Muhammad Ahsan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210114/5bb1a262/attachment.html>
More information about the openstack-discuss
mailing list