You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logging.debug(' get_percent_time for '+dev+'_'+key)
192
+
globalstats, last_val
193
+
194
+
interval= (cur_time-last_update) *1000
195
+
196
+
ifinterval>0:
197
+
stats[dev][key] =round(((val/interval) *100),2)
198
+
else:
199
+
stats[dev][key] =0
200
+
189
201
defget_diff(dev, key, val):
190
202
logging.debug(' get_diff for '+dev+'_'+key)
191
203
globalstats, last_val
@@ -275,6 +287,12 @@ def metric_init(params):
275
287
'units': 'ms',
276
288
'description': 'The time in milliseconds spent in I/O operations'},
277
289
290
+
percent_io_time= {
291
+
'units': 'percent',
292
+
'value_type': 'float',
293
+
'format': '%f',
294
+
'description': 'The percent of disk time spent on I/O operations'},
295
+
278
296
weighted_io_time= {
279
297
'units': 'ms',
280
298
'description': 'The weighted time in milliseconds spend in I/O operations. This measures each I/O start, I/O completion, I/O merge, or read of these stats by the number of I/O operations in progress times the number of milliseconds spent doing I/O.'}
0 commit comments