#LUN metrics per RestPerf

1 messages · Page 1 of 1 (latest)

ruby vigil
#

Hi everyone,
I'm struggeling with the migration from ZAPI Perf to REST Perf.
I want to get LUN performance metrics but the API seems not to allow the LUN id as parameter. As the id contains slashes it's interpreted as different endpoint.

The query:
/api/cluster/counter/tables/lun/rows//vol/nib_dev_tiab_ocp_san_pvc_4871ed8c_da45_4280_9c34_e8cbf13edbd4/lun0:f67e03b9-d880-44d9-9119-1e1a2dc37e1e

Results in an 404 Error: API not found

Any suggestions? Do I miss an encoding?
Some help would be highly welcome.

half lily
#

hi @ruby vigil Harvest makes extensive use of this endpoint and collects lun performance metrics via RestPerf as shown here https://github.com/NetApp/harvest/blob/ed8713c1aff76a2887644c418df01bbf18557234/conf/restperf/9.12.0/lun.yaml#L4
Will #1062050414146625536 do what you want? We also published some notes on REST perf last week that may be helpful https://netapp.github.io/harvest/23.02/resources/rest-perf-metrics/

To query on a lun id try something like this
/api/cluster/counter/tables/lun/rows/%2Fvol%2Flun1%2Flun1_8%3A8bab2a36-3e1e-4be5-96cf-5eca464f9385?fields=*
which you can get from querying all and looking at the return hrefs /api/cluster/counter/tables/lun/rows?return_records=true&fields=*