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>
Thu, 21 Apr 2022 13:04:15 +0000 (15:04 +0200)
commit9f3064a11ccb4c04f610faa56b4695adbbab224d
tree28c913e3aeddecc9079106e40d5da8abe177b150
parentb45d39c1423444672abf8ea4ce3b53f75a1b2741
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>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/ubnt-manager.lua