Skip to main content

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

ParameterTypeDefault ValueRequiredDescription
collection_intervalstring10sNoDuration between data collections (e.g. 10s, 1m).

Advanced Configuration

ParameterTypeDefault ValueRequiredDescription
cpubooleanfalseNoCPU utilization metrics - Supports all OS except macOS.
diskbooleanfalseNoDisk I/O metrics - Supports all OS except macOS.
loadbooleanfalseNoCPU load metrics - Supports all OS.
filesystembooleanfalseNoFile System utilization metrics - Supports all OS.
memorybooleanfalseNoMemory utilization metrics - Supports all OS.
networkbooleanfalseNoNetwork interface I/O metrics & TCP connection metrics - Supports all OS.
pagingbooleanfalseNoPaging/Swap space utilization and I/O metrics - Supports all OS.
processesbooleanfalseNoProcess count metrics - Supports Linux only.
processbooleanfalseNoPer process CPU, Memory, and Disk I/O metrics - Supports Linux & Windows.
systembooleanfalseNoCollects 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

ScraperOptional ToggleExample Metrics
cpuEnable Optional CPU Metricssystem.cpu.frequency, system.cpu.logical.count, system.cpu.physical.count, system.cpu.utilization
filesystemEnable Optional Filesystem Metricssystem.filesystem.utilization
memoryEnable Optional Memory Metricssystem.memory.utilization, system.memory.page_size, system.linux.memory.dirty, system.linux.memory.available
networkEnable Optional Network Metricssystem.network.conntrack.max, system.network.conntrack.count
pagingEnable Optional Paging Metricssystem.paging.utilization

Example Configuration

{
"collection_interval": "10s", // default: "10s"

"scrapers": {
// enable specific scrapers
"cpu": true,
"memory": true,
"network": true,
"filesystem": true,
},
}