prometheus-node-exporter-lua: wifi packets should be a counter
authorAlex Tomlins <alex@tomlins.org.uk>
Sun, 7 Apr 2019 13:08:31 +0000 (14:08 +0100)
committerEtienne Champetier <echampetier@anevia.com>
Fri, 16 Aug 2019 06:11:41 +0000 (23:11 -0700)
commit0d224bdfa110151cc8b463aa87464bea7a4c41dc
tree179c5b4c9fe349c1c91403d847a279b99caa6f48
parenta08f5e17f61ffaad11fc62511d3f88cf7fb533e8
prometheus-node-exporter-lua: wifi packets should be a counter

These output a count of the number of packets transmitted/received, so
should be tracked as a counter. As it stands, promtool is warning that
these shouldn't be named ending _total if they're a gauge.

Signed-off-by: Alex Tomlins <alex@tomlins.org.uk>
(cherry picked from commit a45c702baa1c5e913ac6561ef0e0465b8bd780ce)
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi_stations.lua