@@ -221,43 +221,22 @@ logfire.metric_up_down_counter_callback(
221221
222222You can read more about the Up-Down Counter metric in the [ OpenTelemetry documentation] [ up-down-counter-callback-metric ] .
223223
224-
225224## System Metrics
226225
227226By default, ** Logfire** does not collect system metrics.
228227
229- To enable metrics, you need to install the ` logfire[system-metrics] ` extra:
228+ To enable metrics, you need just need install the ` logfire[system-metrics] ` extra:
230229
231- ``` bash
232- pip install ' logfire[system-metrics] '
233- ```
230+ {{ install_logfire(extras= [ 'system-metrics' ] ) }}
231+
232+ ** Logfire ** will automatically collect system metrics if the ` logfire[system-metrics] ` extra is installed.
234233
235- ### Available Metrics
236-
237- Logfire collects the following system metrics:
238-
239- * ` system.cpu.time ` : CPU time spent in different modes.
240- * ` system.cpu.utilization ` : CPU utilization in different modes.
241- * ` system.memory.usage ` : Memory usage.
242- * ` system.memory.utilization ` : Memory utilization in different modes.
243- * ` system.swap.usage ` : Swap usage.
244- * ` system.swap.utilization ` : Swap utilization
245- * ` system.disk.io ` : Disk I/O operations (read/write).
246- * ` system.disk.operations ` : Disk operations (read/write).
247- * ` system.disk.time ` : Disk time (read/write).
248- * ` system.network.dropped.packets ` : Dropped packets (transmit/receive).
249- * ` system.network.packets ` : Packets (transmit/receive).
250- * ` system.network.errors ` : Network errors (transmit/receive).
251- * ` system.network.io ` : Network I/O (transmit/receive).
252- * ` system.network.connections ` : Network connections (family/type).
253- * ` system.thread_count ` : Thread count.
254- * ` process.runtime.memory ` : Process memory usage.
255- * ` process.runtime.cpu.time ` : Process CPU time.
256- * ` process.runtime.gc_count ` : Process garbage collection count.
234+ To know more about which system metrics are collected, check the [ System Metrics] [ system-metrics ] documentation.
257235
258236[ counter-metric ] : https://opentelemetry.io/docs/specs/otel/metrics/api/#counter
259237[ histogram-metric ] : https://opentelemetry.io/docs/specs/otel/metrics/api/#histogram
260238[ up-down-counter-metric ] : https://opentelemetry.io/docs/specs/otel/metrics/api/#updowncounter
261239[ counter-callback-metric ] : https://opentelemetry.io/docs/specs/otel/metrics/api/#asynchronous-counter
262240[ gauge-callback-metric ] : https://opentelemetry.io/docs/specs/otel/metrics/api/#asynchronous-gauge
263241[ up-down-counter-callback-metric ] : https://opentelemetry.io/docs/specs/otel/metrics/api/#asynchronous-updowncounter
242+ [ system-metrics ] : ../../integrations/system_metrics.md
0 commit comments