Repository navigation
Conversation
|
The commit message needs to be prefixed with a package name and follow the 50/75 rule as per the submissions guidelines. And the package needs a |
|
sorry for not following guidelines, i hope its fine now |
|
ok, i have no clue at all about these build failures. I can see libcurl recursive dependency and other errors but i dont understand why the build is failing by a change in the .lua script. I hope ill find more time to debug the full build process the next days |
|
as i am still not able to reproduce a full build and this keeps failing but the patched version is working on my devices i have to step back fixing this, sorry. I would love to step back in if anyone can give me a hint what to fix or at least where to find the build error. |
|
@vgropp sorry for the delay, can you run the official node exporter on the BPI-R4 and see what we get ? |
|
in 1.11.1 / 2026-04-07 i get: and in sysout: so its the same bug but a bit different behavior. I would really love to see the bpi-r4 support by the lua for all three bands |
|
@vgropp see upstream solution that is likely going to be merged: prometheus/node_exporter#3646, are you interested in implementing the same behavior ? |
|
@champtar thanks for bringing this to upstream. I need to look into it how to solve it here without big changes do you have any hint about the failing builds? |
|
ignore the failing builds (the SDK tries to build code that is only available for a specific arch, normal build work fine, never found enough time to fix it), just make sure the formalities are passing |
|
@champtar i tried to change it so chip_name is only added to duplicates |
|
@champtar any news on this, i would love to get this finally merged |
| for _, sensor_data in ipairs(temp_sensors) do | ||
| local labels = {chip=sensor_data.chip, sensor=sensor_data.sensor} | ||
| if (temp_sensor_counts[sensor_data.chip .. "\0" .. sensor_data.sensor] or 0) > 1 then | ||
| labels.chip_name = sensor_data.chip_name |
There was a problem hiding this comment.
see prometheus/node_exporter#3646 (comment), just adding chip_name is not a full fix
I really prefer to copy the new upstream behavior verbatim.
append the chipname to chip for duplicates, same behavior as in upstream prometheus/node_exporter#3646 Signed-off-by: Volker Gropp <[email protected]>
|
i had to find some time to understand the upstream fix. The test on my Banana Pi R4 shows: to my understanding its now the same behaviour as upstream. |
openwrt-ai
left a comment
There was a problem hiding this comment.
Commit checks
- d693bcc "prometheus-node-exporter-lua: detect duplicate" — the subject doesn't say what is duplicated or how it is fixed, e.g. "prometheus-node-exporter-lua: hwmon: make colliding chip labels unique". The body also leaves out the new hwmon test in
test.sh.
Generated by Claude Code
removes duplicate sample with mt7996 and others with multiple radios
📦 Package Details
Maintainer: @champtar
Description:
Using the hwmon collector with a Banana Pi BPI-R4 there are duplicate samples for
node_hwmon_temp_celsius{sensor="temp1",chip="ieee80211_phy0"}. This results in prometheus warnings:level=WARN source=scrape.go:1923 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=2Adding the chip_name to node_hwmon_temp_celsius fixes this.
Current metrics:
Banana Pi BPI-R4
GL.iNet GL-MT6000
Fixed metrics:
Banana Pi BPI-R4
GL.iNet GL-MT6000
🧪 Run Testing Details
✅ Formalities
If your PR contains a patch:
git am(e.g., subject line, commit description, etc.)
We must try to upstream patches to reduce maintenance burden.