OpenTelemetry Host Metrics and Prometheus Node Exporter

See what the OpenTelemetry host metrics receiver collects, and how to add Prometheus Node Exporter for hardware temperature and Linux pressure stall data.

Isometric line drawing of a server marked with the Prometheus logo, cabled to a cube carrying the OpenTelemetry logo, cabled to a standing meter whose lime screen shows a thermometer and a pressure dial

Contents

The OpenTelemetry host metrics receiver covers CPU, memory, disk, filesystem, network and processes. It does not cover two signals that SREs ask for on Linux hosts: hardware temperature and pressure stall information (PSI). As of 2026-11-12, the hardware temperature scraper is merged but not in a release, and PSI is an open feature request.

Prometheus Node Exporter already exposes both. You can run it next to the Collector and scrape it with the Collector’s Prometheus receiver, so host metrics from both sources flow through one pipeline.

This guide maps what the receiver collects today against what Node Exporter adds. It then gives working configs for a development host, production, Kubernetes, and the Collector plus Node Exporter setup that closes the gap.

What are Host Metrics?

Host metrics describe how a server is doing: how busy the CPU is, how much memory is in use, how full the disks are and how much traffic the network interfaces carry. They tell you whether the machine is the bottleneck before you start blaming the application.

Key host metrics include:

  • CPU: time spent in each state, plus utilization if you enable it.
  • Memory: usage by state, and optionally utilization.
  • Disk and filesystem: I/O operations and bytes, space used and free.
  • Network: bytes, packets, errors and dropped packets per interface.
  • Process: CPU, memory and disk I/O of individual processes.
What are OpenTelemetry Metrics? A Comprehensive Guide | Last9
Learn about OpenTelemetry Metrics, types of instruments, and best practices for effective application performance monitoring and observability.
What are OpenTelemetry Metrics? A Comprehensive Guide | Last9

What the Host Metrics Receiver Covers Today

The receiver is a Collector component that scrapes the host and emits OpenTelemetry metrics. The host metrics receiver README lists these scrapers:

ScraperSupported OSsWhat it collects
cpuAllCPU utilization metrics
diskAllDisk I/O metrics
filesystemAllFile system utilization metrics
hardwareLinuxHardware sensor metrics (temperature)
loadAllCPU load metrics
memoryAllMemory utilization metrics
networkAllNetwork interface I/O and TCP connection metrics
nfsLinuxNFS server and client metrics
pagingAllPaging and swap space utilization and I/O
processesLinux, Mac, FreeBSD, OpenBSDProcess count metrics
processLinux, Windows, Mac, FreeBSDPer process CPU, memory and disk I/O
systemLinux, Windows, MacMiscellaneous system metrics

There is no scraper for pressure stall information. The hardware scraper was merged on 2026-11-10 in pull request 50396, which closed issue 41269. The latest release on that date, v0.165.1, does not list it in its README.

Metrics from the receiver are marked beta. The hardware scraper’s metrics are marked development, so expect their names and attributes to change.

Two details trip people up. The receiver’s type is host_metrics, and hostmetrics still works as a deprecated name, so older configs keep loading. The default collection_interval is 1m, not 30s.

Table mapping seven host signals to the OpenTelemetry host_metrics scraper and the Prometheus Node Exporter collector. CPU, memory, disk I/O, filesystem and network are in release. Temperature is merged but not released, and pressure has no scraper and an open request.
Five of the seven signals are covered in a release. Temperature is merged upstream but not released. Pressure stall data has only a feature request.

The OpenTelemetry Collector Architecture

The OpenTelemetry Collector runs a pipeline: receivers collect, processors transform, exporters send.

  • Receivers are the entry points. For host metrics you use the host metrics receiver, and for Node Exporter you use the Prometheus receiver.
  • Processors transform or enrich data: batching, filtering, adding resource attributes.
  • Exporters send the result to a destination such as an OTLP endpoint or a Prometheus-compatible backend.

The data flow looks like this:

Otel Collector Architecture
Otel Collector Architecture

Basic Setup (Development Environment)

This minimal config scrapes CPU and memory every 30 seconds and exposes them for Prometheus to read. Setting collection_interval explicitly matters because the default is 1m.

# config.yaml - Development Setup
receivers:
host_metrics:
collection_interval: 30s
scrapers:
cpu: {}
memory: {}
processors:
resource:
attributes:
- action: insert
key: service.name
value: "host-monitor-dev"
- action: insert
key: env
value: "development"
exporters:
prometheus:
endpoint: "0.0.0.0:8889"
service:
pipelines:
metrics:
receivers: [host_metrics]
processors: [resource]
exporters: [prometheus]

Start the Collector with debug logging to confirm it works:

otelcol-contrib --config config.yaml --set=service.telemetry.logs.level=debug
OpenTelemetry Collector: The Complete Guide | Last9
This guide covers the OpenTelemetry Collector, its features, use cases, and tips for effectively managing telemetry data.
OpenTelemetry Collector: The Complete Guide | Last9

Production Configuration

For production, add the scrapers you need, enable the optional utilization metrics, attach resource attributes and export over OTLP. The memory_limiter goes first in the pipeline, which is the placement the memory limiter README recommends so backpressure reaches receivers early.

# config.yaml - Production Setup
receivers:
host_metrics:
collection_interval: 30s
scrapers:
cpu:
metrics:
system.cpu.utilization:
enabled: true
memory:
metrics:
system.memory.utilization:
enabled: true
load: {}
paging: {}
disk: {}
filesystem: {}
network: {}
processors:
memory_limiter:
check_interval: 5s
limit_mib: 150
spike_limit_mib: 30
resource_detection:
detectors: [env, system]
timeout: 2s
batch:
timeout: 10s
exporters:
otlp:
endpoint: ${env:OTLP_ENDPOINT}
service:
pipelines:
metrics:
receivers: [host_metrics]
processors: [memory_limiter, resource_detection, batch]
exporters: [otlp]

Add cloud detectors such as ec2, gcp or azure to the detectors list if the hosts run there. The resource detection processor README lists every detector and the attributes it sets.

To send this data to Last9, use the OTLP endpoint and auth header from the host metrics on Ubuntu guide. Any backend that accepts OTLP works the same way.

Kubernetes Deployment

On Kubernetes, run the Collector as a DaemonSet so every node reports. The part most guides skip is the host mount. Inside a container, the receiver reads the container’s own /proc and /sys unless you mount the host filesystem and set root_path. Without that, you chart the pod, not the node.

The receiver README’s fix has two steps: bind mount the host filesystem, then set root_path to the mount point. This ConfigMap sets root_path: /hostfs:

# kubernetes/collector-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: otel-collector-config
data:
config.yaml: |
receivers:
host_metrics:
collection_interval: 30s
root_path: /hostfs
scrapers:
cpu: {}
memory: {}
disk: {}
filesystem: {}
network: {}
load: {}
processors:
resource_detection:
detectors: [env, system]
timeout: 5s
exporters:
otlp:
endpoint: ${env:OTLP_ENDPOINT}
service:
pipelines:
metrics:
receivers: [host_metrics]
processors: [resource_detection]
exporters: [otlp]

The DaemonSet mounts the node’s root filesystem read-only at /hostfs. It also sets OTEL_RESOURCE_ATTRIBUTES so every metric carries the node name. The env detector reads that variable, which is how the receiver README suggests setting resource attributes.

# kubernetes/daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: otel-collector
spec:
selector:
matchLabels:
app: otel-collector
template:
metadata:
labels:
app: otel-collector
spec:
containers:
- name: otel-collector
# Pin a release you have tested; 0.165.0 is published on Docker Hub
image: otel/opentelemetry-collector-contrib:0.165.0
args: ["--config=/etc/otelcol/config.yaml"]
env:
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: OTEL_RESOURCE_ATTRIBUTES
value: "k8s.node.name=$(K8S_NODE_NAME)"
- name: OTLP_ENDPOINT
value: "your-otlp-endpoint"
volumeMounts:
- name: config
mountPath: /etc/otelcol/config.yaml
subPath: config.yaml
- name: hostfs
mountPath: /hostfs
readOnly: true
volumes:
- name: config
configMap:
name: otel-collector-config
- name: hostfs
hostPath:
path: /

Two details matter here. metadata.name is the pod name, so using it as a cluster name labels every metric with the wrong value. The node name comes from spec.nodeName. The kubernetes detector name used in older configs is not in the resource detection processor’s detector list. Its Kubernetes detector is k8s_api, which needs RBAC permission to read nodes.

OpenTelemetry Protocol (OTLP): A Deep Dive into Observability | Last9
Learn about OTLP’s key features, and how it simplifies telemetry data handling, and get practical tips for implementation.
OpenTelemetry Protocol (OTLP): A Deep Dive into Observability | Last9

For a fuller Kubernetes walkthrough, see monitoring Kubernetes hosts with OpenTelemetry.

Collecting Hardware Temperature

The hardware scraper reads sensors from /sys/class/hwmon, respects the receiver’s root_path, and emits hw.temperature in Celsius. It can also emit hw.temperature.limit with a hw.limit_type attribute such as high.critical. Once a release includes it, the config is short:

receivers:
host_metrics:
root_path: /hostfs
scrapers:
hardware:
temperature:
include:
sensors: ["coretemp.*"] # match your own sensor names
match_type: regexp

Treat the readings with care. The receiver README lists two limits that come from the hwmon interface itself:

  • Some drivers expose tempN_input files for sensors they never populate. The file reads 0, so the scraper reports 0 °C, indistinguishable from a real measurement.
  • On chips with external thermistors, the files carry millivolts rather than millidegrees, and the scraper publishes them as temperatures.

Filter the sensors you trust with include.sensors, and alert only on sensors you have compared against a known reading.

Until a release carries the scraper, Node Exporter’s hwmon and thermal_zone collectors read the same kernel interface. hwmon exposes node_hwmon_temp_celsius with chip and sensor labels. thermal_zone exposes node_thermal_zone_temp with zone and type labels. The setup is in the Node Exporter section below.

Collecting Pressure Stall Information

Pressure stall information (PSI) tells you how much time work is stuck waiting for a resource. Load average and CPU utilization can look fine while processes queue behind slow storage or memory reclaim. PSI measures that wait directly. The kernel reports it in /proc/pressure/ as some (at least one task stalled) and full (all non-idle tasks stalled) lines. The kernel PSI documentation defines both.

The host metrics receiver has no PSI scraper, and the feature request was still open on 2026-11-12. Node Exporter’s pressure collector covers it on Linux kernel 4.20 or later, or with CONFIG_PSI. It exposes counters in seconds:

  • node_pressure_cpu_waiting_seconds_total
  • node_pressure_io_waiting_seconds_total and node_pressure_io_stalled_seconds_total
  • node_pressure_memory_waiting_seconds_total and node_pressure_memory_stalled_seconds_total
  • node_pressure_irq_stalled_seconds_total

In Node Exporter’s help text, “waiting” means processes waited for the resource (the some line) and “stalled” means no process could make progress (the full line). CPU has no stalled counter because the kernel does not define full CPU pressure at the system level.

Because these are counters, take a rate. The result is the fraction of each second spent stalled:

# Share of time with no process able to make progress on memory
rate(node_pressure_memory_stalled_seconds_total[5m])
# Share of time at least one process waited on disk I/O
rate(node_pressure_io_waiting_seconds_total[5m])

Alert on sustained values rather than spikes. A memory stalled rate that stays above zero for several minutes means the host is reclaiming memory under load, even if free memory looks acceptable.

Run prom/node-exporter Next to the Collector

The pattern is simple: Node Exporter exposes Prometheus metrics on port 9100, and the Collector’s Prometheus receiver scrapes them with the same scrape config syntax Prometheus uses. Our post on how Prometheus exporters work with OpenTelemetry covers the model in more depth.

To avoid reporting CPU and memory twice, turn off the Node Exporter defaults and enable only the collectors the host metrics receiver cannot replace. The Node Exporter README documents --collector.disable-defaults for this.

On a plain Linux host, run it as a container with the host root mounted and --path.rootfs set to match, as the Node Exporter README requires for containers:

docker run -d \
--net=host \
--pid=host \
-v "/:/host:ro,rslave" \
prom/node-exporter:v1.12.1 \
--path.rootfs=/host \
--collector.disable-defaults \
--collector.hwmon \
--collector.thermal_zone \
--collector.pressure

Add a Prometheus receiver to the Collector config and put it in the same metrics pipeline as the host metrics receiver:

receivers:
host_metrics:
collection_interval: 30s
scrapers:
cpu: {}
memory: {}
disk: {}
filesystem: {}
network: {}
prometheus/node:
config:
scrape_configs:
- job_name: node
scrape_interval: 30s
static_configs:
- targets: ["localhost:9100"]
service:
pipelines:
metrics:
receivers: [host_metrics, prometheus/node]
processors: [memory_limiter, resource_detection, batch]
exporters: [otlp]

On Kubernetes, add Node Exporter as a second container in the same DaemonSet pod and set hostNetwork: true and hostPID: true on the pod. The Collector then reaches it at localhost:9100. Mount the node’s root at /host and pass the same flags as above.

The Prometheus receiver keeps Node Exporter’s metric names, so queries such as node_pressure_memory_stalled_seconds_total still work after the data lands in your backend. Whether a given backend keeps those counters unchanged is worth a quick query to confirm.

Common Pitfalls and Solutions

1. The receiver reports the container, not the host

Issue: Inside a container, CPU, memory and filesystem numbers describe the container. Node Exporter has the same problem.

Solution: Bind mount the host filesystem. Set root_path on the host metrics receiver and --path.rootfs on Node Exporter to the mount point.

2. Collection interval confusion

Issue: Configs written for an assumed 30s default scrape every minute, because the receiver default is 1m. High CPU on the Collector itself is the opposite problem: the interval is too short for the number of scrapers.

Solution: Set collection_interval explicitly. To scrape some scrapers less often, define a second receiver such as host_metrics/disk with its own interval. If you run several instances, give them the same root_path.

receivers:
host_metrics:
collection_interval: 30s
scrapers:
cpu: {}
memory: {}
host_metrics/disk:
collection_interval: 1m
scrapers:
disk: {}
filesystem: {}

3. Duplicate CPU and memory series

Issue: Running Node Exporter with its default collectors next to the host metrics receiver reports CPU, memory and disk twice, under different names.

Solution: Start Node Exporter with --collector.disable-defaults and enable only hwmon, thermal_zone and pressure, or filter the overlap with the filter processor.

4. Unbounded memory use in the Collector

Issue: A Collector with no memory limit can be killed by the host’s OOM killer under load.

Solution: Put memory_limiter first in the pipeline and size limit_mib below the container limit. The README suggests starting spike_limit_mib at 20% of the hard limit.

5. Permission errors reading process data

Issue: Without enough privileges, the process scraper cannot read some processes and logs errors.

Solution: Run with the privileges your policy allows, or mute the noise with the scraper’s mute_process_*_error options. The receiver README lists each one.

Best Practices from Production

1. Resource Attribution

The host metrics receiver sets no resource attributes of its own. Use the resource_detection processor so every metric carries host and cloud metadata.

processors:
resource_detection:
detectors: [env, system]
timeout: 2s

2. Monitoring the Monitor

Alert on the Collector’s own metrics, as covered in monitoring the OpenTelemetry Collector. If the Collector stops exporting, every host dashboard goes quiet at once, and a quiet dashboard looks like a healthy one.

3. Graceful Degradation

Set timeout and retry policies on exporters so transient failures do not drop data.

exporters:
otlp:
endpoint: ${env:OTLP_ENDPOINT}
timeout: 10s
retry_on_failure:
enabled: true
initial_interval: 5s
max_elapsed_time: 120s

4. Versioning and Upgrades

Pin the Collector image to a tested release rather than latest. Test new versions in staging first. Each upgrade, check the receiver README: once a release includes the hardware scraper, you can drop hwmon from Node Exporter. Dashboards built on node_hwmon_temp_celsius need to move to hw.temperature.

5. Configuration Management

Keep Collector and Node Exporter configs in version control. A flag like --collector.disable-defaults is easy to lose in a hand-edited unit file, and losing it brings back duplicate series.

A decision rule for new hosts: use the host metrics receiver for everything it covers, and add Node Exporter only for temperature and PSI until the receiver catches up.

🤝

If you have questions or want to compare setups, our community on Discord has a dedicated channel for OpenTelemetry questions.

FAQ

What does an OpenTelemetry Collector do?

The OpenTelemetry Collector is a vendor-neutral pipeline for telemetry. It receives logs, metrics and traces from many sources, processes them (batching, filtering, adding resource attributes) and exports them to one or more backends, so you can change backends without re-instrumenting hosts or applications.

What are host metrics?

Host metrics describe how a server is doing: CPU time, memory usage, disk I/O, filesystem space, network traffic, load average and per-process resource use. They answer whether the machine is the bottleneck, and they are the baseline you compare application metrics against.

Does the OpenTelemetry hostmetrics receiver collect hardware temperature?

Not in a release yet. A hardware scraper that emits hw.temperature from /sys/class/hwmon was merged into the Collector contrib repository on 2026-11-10, but the latest release at that date, v0.165.1, does not list it. Until a release includes it, scrape Prometheus Node Exporter’s hwmon and thermal_zone collectors with the Collector’s Prometheus receiver.

Does the OpenTelemetry Collector collect Linux pressure stall information (PSI)?

Not through the host metrics receiver. It has no PSI scraper, and the upstream feature request was still open on 2026-11-12. Prometheus Node Exporter’s pressure collector exposes PSI from /proc/pressure as node_pressure_* counters on kernel 4.20 or later, and the Collector can scrape them.

What is the difference between the hostmetrics receiver and Prometheus Node Exporter?

The host metrics receiver is a Collector component that reads the host and emits OpenTelemetry metrics such as system.cpu.time and system.memory.usage. Node Exporter is a separate Prometheus exporter that serves Prometheus-format metrics such as node_cpu_seconds_total on port 9100. Node Exporter has more Linux collectors, including pressure, hwmon and thermal_zone.

Can I run Prometheus Node Exporter with the OpenTelemetry Collector?

Yes. Run Node Exporter on the host, or as a container with —path.rootfs set, and add a prometheus receiver to the Collector with a scrape config that targets port 9100. Both receivers can feed the same metrics pipeline. Disable overlapping Node Exporter collectors so CPU and memory are not reported twice.

How do you set up host metrics monitoring with the OpenTelemetry Collector?

Add a host_metrics receiver with the scrapers you need (cpu, memory, disk, filesystem, network), put it in a metrics pipeline with an exporter such as otlp, and start the Collector. In a container, mount the host filesystem and set root_path, or the receiver measures the container instead of the host.

What is the difference between OpenTelemetry Collector and Prometheus?

The Collector is a data pipeline: it receives, processes and exports telemetry and stores nothing. Prometheus is a monitoring system that scrapes, stores and queries time series. They work together: the Collector can scrape Prometheus endpoints like Node Exporter, and it can export to Prometheus-compatible backends.

About the authors
Prathamesh Sonpatki

Prathamesh Sonpatki

Prathamesh works as an evangelist at Last9, runs SRE stories - where SRE and DevOps folks share their stories, and maintains o11y.wiki - a glossary of all terms related to observability.

Last9 logo and enter key

Start observing for free. No lock-in.

OpenTelemetry · Prometheus

Just update your config. Start seeing data on Last9 in seconds.

Datadog · New Relic · Others

We've got you covered. Bring over your dashboards & alerts in one click.

Built on Open Standards

100+ integrations. OTel native, works with your existing stack.