Skip to content

Metric node_hwmon_pwm_enable was collected before with the same name and label values #3637

Closed

Description

@eirc

I'm getting this error on my laptop running node_exporter on every scrape. I have formatted the long entry for easy reading:

level=ERROR
source=http.go:175

error gathering metrics: 2 error(s) occurred:

* [from Gatherer #2] collected metric "node_hwmon_pwm_enable"
{ label:{name:"chip" value:"platform_asus_nb_wmi"} label:{name:"sensor" value:"pwm1"} gauge:{value:2}}
was collected before with the same name and label values

* [from Gatherer #2] collected metric "node_hwmon_pwm_enable"
{ label:{name:"chip" value:"platform_asus_nb_wmi"} label:{name:"sensor" value:"pwm2"} gauge:{value:2}}
was collected before with the same name and label values

It's nixos with a simple mostly defaults config. Adding the --collector.hwmon.chip-exclude=platform_asus_nb_wmi flag fixed it by disabling that chip.

  services.prometheus.exporters.node = {
    enable = true;
    port = 9100;
    enabledCollectors = [
      "drm"
    ];
    extraFlags = [
      "--collector.hwmon.chip-exclude=platform_asus_nb_wmi"
    ];
  };

Activity

  1. vishnu97770 commented on Apr 25, 2026

    @vishnu97770

    Hi, I’ve looked into this issue and understand that it’s caused by duplicate metrics being collected for the same chip and sensor labels.

    I’m interested in working on a fix for this. My initial idea is to handle deduplication within the hwmon collector (possibly by tracking already-seen metric label combinations).

    I’d like to confirm:

    • Is this the expected direction for a fix?
    • Or is there a preferred approach to handle duplicate hwmon entries?

    Happy to take this up if no one else is working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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