prometheus-node-exporter-lua: Add wifi_station_count
authorAlex Tomlins <redacted>
Sun, 7 Apr 2019 13:01:12 +0000 (14:01 +0100)
committerAlex Tomlins <redacted>
Mon, 8 Apr 2019 18:39:34 +0000 (19:39 +0100)
commit1237e196b47dbbd7cac7cf7cabe4b8c86e09e0da
tree9ca34dbf75a8dd9d76aaa45a66021334804ae99a
parenta45c702baa1c5e913ac6561ef0e0465b8bd780ce
prometheus-node-exporter-lua: Add wifi_station_count

To return the number of connected clients.

At present this can be partially inferred by using a count() over one of
the existing metrics, however this doesn't handle the case when there
are no connected clients. When that happens, the count() will return no
data instead of 0.

Signed-off-by: Alex Tomlins <redacted>
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi_stations.lua
git clone https://git.99rst.org/PROJECT