Skip to content

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

@eirc

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"
    ];
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions