This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/collector/components/contrib/systemdreceiver.md.

Systemd Receiver

OpenTelemetry Collector receiver · contrib distribution

The Systemd Receiver gathers metrics for locally running systemd units.

  • Component ID: contrib-systemdreceiver
  • Name: systemdreceiver
  • Type: receiver
  • Distribution: contrib
  • Repository: opentelemetry-collector-contrib

Stability

LevelSignals
alphametrics

Metrics

MetricTypeValue typeUnitStabilityEnabledAttributesDescription
systemd.service.cpu.timesum (monotonic)intusdevelopmentyescpu.mode (string)Total CPU time spent by this service.
systemd.service.memory.usagesumintBydevelopmentyesBytes of memory in use by this service.
systemd.service.memory.usage.maxsumintBydevelopmentyesMaximum memory used by this service, in bytes.
systemd.service.restartssum (monotonic)int{restarts}developmentnoNumber of automatic restarts for the service. This exposes services' NRestarts property as a metric. This only tracks automatic service restarts (restarts when the process exits), and does not include manual restarts (e.g. from systemctl restart).
systemd.unit.statesumint1alphayessystemd.unit.active_state (string)1 if the check resulted in active_state matching the current state, otherwise 0.

Attributes

AttributeTypeDescription
cpu.modestringBreakdown of CPU usage by type.
systemd.unit.active_statestringThe active state of the unit (https://www.freedesktop.org/software/systemd/man/latest/systemd.html#Units)

Data

  • JSON (latest): /data/collector/components/contrib-systemdreceiver/latest.json
  • JSON (pinned): /data/collector/components/contrib-systemdreceiver/contrib-systemdreceiver-d6d2824efac6.json
  • Explore: /collector/components/contrib/systemdreceiver