Skip to content

Commit e83a77a

Browse files
committed
prometheus-node-exporter-lua: chip_name to sample
adds chip_name to temp metrics to remove duplicate sample with mt7996 Signed-off-by: Volker Gropp <[email protected]>
1 parent afce316 commit e83a77a

File tree

2 files changed

+2
-2
lines changed
  • utils/prometheus-node-exporter-lua

2 files changed

+2
-2
lines changed

utils/prometheus-node-exporter-lua/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
55

66
PKG_NAME:=prometheus-node-exporter-lua
77
PKG_VERSION:=2025.11.22
8-
PKG_RELEASE:=1
8+
PKG_RELEASE:=2
99

1010
PKG_MAINTAINER:=Etienne CHAMPETIER <[email protected]>
1111
PKG_LICENSE:=Apache-2.0

utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hwmon.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ local function scrape()
3939
for sensor_path in fs.glob(hwmon_path .. "/temp*_input") do
4040
local sensor = string.gsub(fs.basename(sensor_path), "_input$", "")
4141
local temp = get_contents(sensor_path) / 1000
42-
metric_temp_celsius({chip=chip, sensor=sensor}, temp)
42+
metric_temp_celsius({chip=chip, sensor=sensor, chip_name=chip_name}, temp)
4343
end
4444

4545
-- Produce node_hwmon_pwm

0 commit comments

Comments
 (0)