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
218
globalstats, last_val
193
219
194
-
interval=(cur_time-last_update) *1000
220
+
interval=cur_time-last_update
195
221
196
222
ifinterval>0:
197
-
stats[dev][key] =round(((val/interval) *100),2)
223
+
stats[dev][key] =(val/interval) *100
198
224
else:
199
225
stats[dev][key] =0
200
226
@@ -259,13 +285,13 @@ def metric_init(params):
259
285
'units': 'reads',
260
286
'description': 'The number of reads merged. Reads which are adjacent to each other may be merged for efficiency. Multiple reads may become one before it is handed to the disk, and it will be counted (and queued) as only one I/O.'},
261
287
262
-
read_kbytes_per_sec= {
263
-
'units': 'Kbytes/sec',
264
-
'description': 'The number of Kbytes read per second'},
288
+
read_bytes_per_sec= {
289
+
'units': 'bytes/sec',
290
+
'description': 'The number of bytes read per second'},
265
291
266
292
read_time= {
267
-
'units': 'ms',
268
-
'description': 'The time in milliseconds spent reading'},
293
+
'units': 's',
294
+
'description': 'The time in seconds spent reading'},
269
295
270
296
writes= {
271
297
'units': 'writes',
@@ -275,17 +301,17 @@ def metric_init(params):
275
301
'units': 'writes',
276
302
'description': 'The number of writes merged. Writes which are adjacent to each other may be merged for efficiency. Multiple writes may become one before it is handed to the disk, and it will be counted (and queued) as only one I/O.'},
277
303
278
-
write_kbytes_per_sec= {
279
-
'units': 'Kbytes/sec',
280
-
'description': 'The number of Kbytes written per second'},
304
+
write_bytes_per_sec= {
305
+
'units': 'bytes/sec',
306
+
'description': 'The number of bbytes written per second'},
281
307
282
308
write_time= {
283
-
'units': 'ms',
284
-
'description': 'The time in milliseconds spent writing'},
309
+
'units': 's',
310
+
'description': 'The time in seconds spent writing'},
285
311
286
312
io_time= {
287
-
'units': 'ms',
288
-
'description': 'The time in milliseconds spent in I/O operations'},
313
+
'units': 's',
314
+
'description': 'The time in seconds spent in I/O operations'},
289
315
290
316
percent_io_time= {
291
317
'units': 'percent',
@@ -294,8 +320,8 @@ def metric_init(params):
294
320
'description': 'The percent of disk time spent on I/O operations'},
295
321
296
322
weighted_io_time= {
297
-
'units': 'ms',
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.'}
323
+
'units': 's',
324
+
'description': 'The weighted time in seconds 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 seconds spent doing I/O.'}
0 commit comments