prometheus-node-exporter-lua: add target & system to OpenWrt collector 9751/head
authorEtienne Champetier <champetier.etienne@gmail.com>
Thu, 15 Aug 2019 03:48:48 +0000 (20:48 -0700)
committerEtienne Champetier <echampetier@anevia.com>
Fri, 16 Aug 2019 03:22:08 +0000 (20:22 -0700)
commitf07e5b5b2c0040a30cae5d68d90f98643f4915f3
treec4ee76f0f5b3d3b62596b2282fc858d52d677466
parentefe5363c6d7c5280f1d6545085f73b1fe52b46ef
prometheus-node-exporter-lua: add target & system to OpenWrt collector

Before:
node_openwrt_info{revision="r10756+1-7546be6007",model="GL.iNet GL-AR150",id="OpenWrt",board_name="glinet,gl-ar150",release="SNAPSHOT"} 1

After:
node_openwrt_info{revision="r10756+1-7546be6007",target="ath79/generic",board_name="glinet,gl-ar150",id="OpenWrt",model="GL.iNet GL-AR150",release="SNAPSHOT",system="Atheros AR9330 rev 1"} 1

Fixes #9730, replace #9735

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
(cherry picked from commit a14bed1bc959116617b0eb75d2d9a46551a480e6)
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/openwrt.lua