The hostmetricsreceiver plugin for OpenTelemetry Collector collects numerous metrics about the host machine, such as CPU, RAM, disc data, and other system-level metrics.
However, OpenTelemetry lacks built-in storage and processing tools for the acquired data. Instead, you may export the data to your preferred OpenTelemetry backend, such as Prometheus or Uptrace.
To begin collecting host metrics, install Otel Collector on each machine to be monitored and add the following lines to the Collector configuration:
receivers:
hostmetrics:
collection_interval: 10s
scrapers:
# CPU utilization metrics
cpu:
# Disk I/O metrics
disk:
# File System utilization metrics
filesystem:
# CPU load metrics
load:
# Memory utilization metrics
memory:
# Network interface I/O metrics & TCP connection metrics
network:
# Paging/Swap space utilization and I/O metrics
paging:
For further information, see the OpenTelemetry Collector host metrics documentation.
Top comments (0)