RESTful API and System Manager are not returning volume statistics
Applies to
- ONTAP 9
- RESTful API
- System Manager
Issue
- REST Command: GET for /storage/volumes/<instance-UUID> returns no volume statistics.
Example:
root@x.x.x.x:/home # curl -u sde:supersecretpassword --insecure https://10.x.x.94/api/storage/volumes/ae908815-f3fa-xxxx-bcb5-d039ea2315e3
"metric": {
"timestamp": "2022-03-22T17:27:30Z",
"duration": "PT15S",
"status": "ok",
"latency": {
"other": 0,
"total": 0,
"read": 0,
"write": 0
},
"iops": {
"read": 0,
"write": 0,
"other": 0,
"total": 0
},
"throughput": {
"read": 0,
"write": 0,
"other": 0,
"total": 0
}
},
- However, statistics can be pulled from the CLI
::> qos statistics volume latency show -volume vol_xxx
svm_1672514dd44711eb8961ca7f3f1f55b8_9ff6ae37
Workload ID Latency Network Cluster Data Disk QoS Max QoS Min NVRAM Cloud FlexCache SM Sync VA AVSCAN
--------------- ------ ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
-total- - 600.00us 52.00us 10.00us 62.00us 0ms 469.00us 0ms 7.00us 0ms 0ms 0ms 0ms 0ms
vol_xxx.. 22280 99.00us 43.00us 0ms 56.00us 0ms 0ms 0ms 0ms 0ms 0ms 0ms 0ms 0ms