Skip to content

Documentation issues: non-existing flags #188

@ralfbergs

Description

@ralfbergs

In the README.md for the current version, 0.7.0 / 2025-03-14 Latest, it mentions in section Relation to Node and Process Exporter the below flags:

  • --systemd.collector.enable-task-metrics
  • --systemd.collector.enable-restarts-metrics
  • --systemd.collector.enable-start-time-metrics

In a later section, Systemd versions, it mentions the below flags:

  • --systemd.collector.enable-restart-count
  • --systemd.collector.enable-file-descriptor-size
  • --systemd.collector.enable-ip-accounting

It seems that the below flags refer to the same thing, maybe they have changed over time?

  • --systemd.collector.enable-restarts-metrics
  • --systemd.collector.enable-restart-count

The flags actually implemented in that version on my system are:

$ /usr/local/bin/prometheus-systemd-exporter --help 2>&1 |grep systemd.collector.enable
      --[no-]systemd.collector.enable-restart-count
      --[no-]systemd.collector.enable-ip-accounting
      --[no-]systemd.collector.enable-resolved

Which would mean that --systemd.collector.enable-restart-count is probably the correct option, while --systemd.collector.enable-restarts-metrics might be an outdated one?

Furthermore, --[no-]systemd.collector.enable-resolved is not documented in the README.md -- not sure if this is an oversight or intentional?

My version details:

$ /usr/local/bin/prometheus-systemd-exporter --version
systemd_exporter, version 0.7.0 (branch: HEAD, revision: 8b490c0159f2d3b80d1721c1e632a021f496f375)
  build user:       root@ecc5fcf2da63
  build date:       20250314-08:39:11
  go version:       go1.24.1
  platform:         linux/amd64
  tags:             unknown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions