prometheus-node-exporter-lua: improve ubnt-manager
authorNick Hainke <vincent@systemli.org>
Mon, 18 Apr 2022 06:44:55 +0000 (08:44 +0200)
committerNick Hainke <vincent@systemli.org>
Mon, 25 Apr 2022 12:23:20 +0000 (14:23 +0200)
commit87f14264fe0a03f7ca43558f3c6dcd8f288a83bc
treea9af4a22ea37bc43d28d970b5c126e4c71fa90af
parentbccdd3c8d068a94d623941d99ddd677161c07f1a
prometheus-node-exporter-lua: improve ubnt-manager

It is costly in transmissions to add all information to each metric.
Instead, only use the "device" as a label and add all other important
labels to the "uptime" metric.

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 9f3064a11ccb4c04f610faa56b4695adbbab224d)
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/ubnt-manager.lua