Host Metrics
Overview
Host Metrics collects system metrics from the host machine using the OpenTelemetry hostmetrics component.
Supported platforms
- Linux:
Metrics - Windows:
Metrics - macOS:
Metrics
Basic Configuration
| Parameter | Type | Default Value | Required | Description |
|---|---|---|---|---|
| collection_interval | string | 10s | No | Duration between data collections (e.g. 10s, 1m). |
Advanced Configuration
| Parameter | Type | Default Value | Required | Description |
|---|---|---|---|---|
| cpu | boolean | false | No | CPU utilization metrics - Supports all OS except macOS. |
| disk | boolean | false | No | Disk I/O metrics - Supports all OS except macOS. |
| load | boolean | false | No | CPU load metrics - Supports all OS. |
| filesystem | boolean | false | No | File System utilization metrics - Supports all OS. |
| memory | boolean | false | No | Memory utilization metrics - Supports all OS. |
| network | boolean | false | No | Network interface I/O metrics & TCP connection metrics - Supports all OS. |
| paging | boolean | false | No | Paging/Swap space utilization and I/O metrics - Supports all OS. |
| processes | boolean | false | No | Process count metrics - Supports Linux only. |
| process | boolean | false | No | Per process CPU, Memory, and Disk I/O metrics - Supports Linux & Windows. |
| system | boolean | false | No | Collects system metrics: system.uptime. |
Note: Enabling scrapers like cpu, filesystem, memory, network, or paging reveals an Enable Optional CPU Metrics (etc.) toggle for additional detailed metrics (see Optional Metrics below). At least one scraper must be enabled.
Optional Metrics
| Scraper | Optional Toggle | Example Metrics |
|---|---|---|
| cpu | Enable Optional CPU Metrics | system.cpu.frequency, system.cpu.logical.count, system.cpu.physical.count, system.cpu.utilization |
| filesystem | Enable Optional Filesystem Metrics | system.filesystem.utilization |
| memory | Enable Optional Memory Metrics | system.memory.utilization, system.memory.page_size, system.linux.memory.dirty, system.linux.memory.available |
| network | Enable Optional Network Metrics | system.network.conntrack.max, system.network.conntrack.count |
| paging | Enable Optional Paging Metrics | system.paging.utilization |
Example Configuration
{
"collection_interval": "10s", // default: "10s"
"scrapers": {
// enable specific scrapers
"cpu": true,
"memory": true,
"network": true,
"filesystem": true,
},
}