openwrt / openwrt/packages

prometheus-node-exporter-lua: duplicate sample with mt7996 and multiple radios

Open
#28,417 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

prometheus-node-exporter-lua

Maintainer

@champtar

OpenWrt Version

SNAPSHOT

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce
  1. enable multiple radios
  2. prometheus will report: time=2026-01-24T17:18:16.179Z level=WARN source=scrape.go:1949 msg="Error on ingesting samples with different value but same timestamp" component="scrape manager" scrape_pool=node-exporter target=http://<ip>:9100/metrics num_dropped=2
node_hwmon_chip_names{chip_name="mt7996_phy0.0",chip="ieee80211_phy0"} 1
node_hwmon_temp_celsius{sensor="temp1",chip="ieee80211_phy0"} 49
node_hwmon_chip_names{chip_name="mt7996_phy0.1",chip="ieee80211_phy0"} 1
node_hwmon_temp_celsius{sensor="temp1",chip="ieee80211_phy0"} 49
node_hwmon_chip_names{chip_name="mt7996_phy0.2",chip="ieee80211_phy0"} 1
node_hwmon_temp_celsius{sensor="temp1",chip="ieee80211_phy0"} 51
Actual Behaviour

The chip name label is missing because the chips are identical. My proposed fix (PR #28092) works locally, but the CI build fails with unrelated package errors. Assistance in debugging the logs would be appreciated.

Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with proposed PR #28092 and its CI failure logs, then reproduce the reported metrics with multiple radios and identical mt7996 chips. Done means the exporter no longer produces duplicate samples and the package passes CI; no source file or test path is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, prometheus
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.