willnx / autobox

1 stars 0 forks source link

Unity's correct path to IOPS and Latency #1

Open CrashLaker opened 4 years ago

CrashLaker commented 4 years ago

Hi @willnx,

I just found your unity collector script which btw is pretty well written from a bash scripter perspective.

I've a question regarding your use of sp.*.storage.lun.*.totalIoTime and sp.*.storage.lun.*.currentIOCount.

My goal is to collect the data as shown in the picture below. image

When I query on the sp.*.storage.lun.*.currentIOCount path all I get is mostly 0 and 1 per lun though when I use the sp.*.storage.lun.*.totalCallsRate gives me the correct mean which is about 19k from the example.

About 'LUN RESPONSE TIME' one neither of them return me any value close to that. So knowing it's unit is in uSec.

When using sp.*.storage.lun.*.totalIoTime all the values are way higher than expected (i tried with interval 5 and 60): image this is the total sum (uSecs) per sp us sum {'spa': 55451448822569, 'spb': 52956953776637}

With sp.*.storage.lun.*.responseTime I get this: {'spb': 247806.02390732957, 'spa': 192586.44338922366}

which is way far from 1000usecs ~1ms I'm expecting to find.

Can you help me?

Regards, C.

CrashLaker commented 4 years ago

Actually I just realized I can also scrape it directly from the website /api/types/kpiValue/. Anyways It would be better If I could use a documented API.