@@ -190,7 +190,7 @@ def _instrument(self, **kwargs):
190
190
name = "system.cpu.time" ,
191
191
callbacks = [self ._get_system_cpu_time ],
192
192
description = "System CPU time" ,
193
- unit = "seconds " ,
193
+ unit = "s " ,
194
194
)
195
195
196
196
if "system.cpu.utilization" in self ._config :
@@ -206,7 +206,7 @@ def _instrument(self, **kwargs):
206
206
name = "system.memory.usage" ,
207
207
callbacks = [self ._get_system_memory_usage ],
208
208
description = "System memory usage" ,
209
- unit = "bytes " ,
209
+ unit = "By " ,
210
210
)
211
211
212
212
if "system.memory.utilization" in self ._config :
@@ -257,7 +257,7 @@ def _instrument(self, **kwargs):
257
257
name = "system.disk.io" ,
258
258
callbacks = [self ._get_system_disk_io ],
259
259
description = "System disk IO" ,
260
- unit = "bytes " ,
260
+ unit = "By " ,
261
261
)
262
262
263
263
if "system.disk.operations" in self ._config :
@@ -273,7 +273,7 @@ def _instrument(self, **kwargs):
273
273
name = "system.disk.time" ,
274
274
callbacks = [self ._get_system_disk_time ],
275
275
description = "System disk time" ,
276
- unit = "seconds " ,
276
+ unit = "s " ,
277
277
)
278
278
279
279
# TODO Add _get_system_filesystem_usage
@@ -282,7 +282,7 @@ def _instrument(self, **kwargs):
282
282
# callback=self._get_system_filesystem_usage,
283
283
# name="system.filesystem.usage",
284
284
# description="System filesystem usage",
285
- # unit="bytes ",
285
+ # unit="By ",
286
286
# value_type=int,
287
287
# )
288
288
@@ -327,7 +327,7 @@ def _instrument(self, **kwargs):
327
327
name = "system.network.io" ,
328
328
callbacks = [self ._get_system_network_io ],
329
329
description = "System network io" ,
330
- unit = "bytes " ,
330
+ unit = "By " ,
331
331
)
332
332
333
333
if "system.network.connections" in self ._config :
@@ -350,15 +350,15 @@ def _instrument(self, **kwargs):
350
350
name = f"process.runtime.{ self ._python_implementation } .memory" ,
351
351
callbacks = [self ._get_runtime_memory ],
352
352
description = f"Runtime { self ._python_implementation } memory" ,
353
- unit = "bytes " ,
353
+ unit = "By " ,
354
354
)
355
355
356
356
if "process.runtime.cpu.time" in self ._config :
357
357
self ._meter .create_observable_counter (
358
358
name = f"process.runtime.{ self ._python_implementation } .cpu_time" ,
359
359
callbacks = [self ._get_runtime_cpu_time ],
360
360
description = f"Runtime { self ._python_implementation } CPU time" ,
361
- unit = "seconds " ,
361
+ unit = "s " ,
362
362
)
363
363
364
364
if "process.runtime.gc_count" in self ._config :
@@ -371,7 +371,7 @@ def _instrument(self, **kwargs):
371
371
name = f"process.runtime.{ self ._python_implementation } .gc_count" ,
372
372
callbacks = [self ._get_runtime_gc_count ],
373
373
description = f"Runtime { self ._python_implementation } GC count" ,
374
- unit = "bytes " ,
374
+ unit = "By " ,
375
375
)
376
376
377
377
if "process.runtime.thread_count" in self ._config :
0 commit comments