Skip to content

系统指标

By default, Logfiredoes not collect system metrics.

To enable metrics, you need to install logfire[system-metrics] extra:

{{ install_logfire(extras=['系统指标']) }}

available metrics

Logfire collects system metrics as follows:

  • system.cpu.time CPU time spent in different modes.

  • system.cpu.utilization CPU utilization in different modes.

  • system.memory.usage: Memory usage.

  • system.memory.utilization: Memory utilization in different modes.

  • system.swap.usage:: Exchange of usage.

  • system.swap.utilization: Exchange utilization

  • system.disk.io Disk I/O operations (read/write).

  • system.disk.operations Disk operations (read/write).

  • system.disk.time Disk time (read/write).

  • system.network.dropped.packets: dropped packets (sent/received).

  • system.network.packets: Data packets (send/receive).

  • system.network.errors: Network error (send/receive).

  • system.network.io Network I/O(Send/Receive).

  • system.network.connections: Network connection (family/type).

  • system.thread_count: Number of threads.

  • process.runtime.memory: Process memory usage.

  • process.runtime.cpu.time Processing CPU time.

  • process.runtime.gc_count: Handles garbage collection counts.


本文总阅读量次