prometheus-node-exporter-lua: Change node_time_seconds type to "gauge"
authorForest Crossman <cyrozap@gmail.com>
Sun, 3 May 2020 08:01:08 +0000 (03:01 -0500)
committerForest Crossman <cyrozap@gmail.com>
Sun, 3 May 2020 20:16:14 +0000 (15:16 -0500)
commit850c8dc1418a8677c4b8f53e2fa56db6df446ac7
treed208dabc796fea650978c09ea52d8c909e8f309c
parent6198128711fec34579cd16c2e6f4aff098862e87
prometheus-node-exporter-lua: Change node_time_seconds type to "gauge"

The official node_exporter reports node_time_seconds as a gauge, but
prometheus-node-exporter-lua reports it as a counter. To be consistent
with the official implementation, and because "gauge" is more correct
than "counter" for this metric (system time can decrease, but the
Prometheus documentation states, "A counter is a cumulative metric that
represents a single monotonically increasing counter whose value can
only increase or be reset to zero on restart."), change the type for
node_time_seconds to "gauge".

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/time.lua