Browse Source

Merge pull request #12061 from cyrozap/prometheus-node-exporter-lua-time

prometheus-node-exporter-lua: Change node_time_seconds type to "gauge"
lilik-openwrt-22.03
Etienne Champetier 4 years ago
committed by GitHub
parent
commit
eea609811e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      utils/prometheus-node-exporter-lua/Makefile
  2. +1
    -1
      utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/time.lua

+ 1
- 1
utils/prometheus-node-exporter-lua/Makefile View File

@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=prometheus-node-exporter-lua
PKG_VERSION:=2020.02.03
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
PKG_LICENSE:=Apache-2.0


+ 1
- 1
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/time.lua View File

@ -1,6 +1,6 @@
local function scrape()
-- current time
metric("node_time_seconds", "counter", nil, os.time())
metric("node_time_seconds", "gauge", nil, os.time())
end
return { scrape = scrape }

Loading…
Cancel
Save