mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #12061 from cyrozap/prometheus-node-exporter-lua-time
prometheus-node-exporter-lua: Change node_time_seconds type to "gauge"
This commit is contained in:
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=prometheus-node-exporter-lua
|
PKG_NAME:=prometheus-node-exporter-lua
|
||||||
PKG_VERSION:=2020.02.03
|
PKG_VERSION:=2020.02.03
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
|
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
local function scrape()
|
local function scrape()
|
||||||
-- current time
|
-- current time
|
||||||
metric("node_time_seconds", "counter", nil, os.time())
|
metric("node_time_seconds", "gauge", nil, os.time())
|
||||||
end
|
end
|
||||||
|
|
||||||
return { scrape = scrape }
|
return { scrape = scrape }
|
||||||
|
|||||||
Reference in New Issue
Block a user