# HG changeset patch # User Kim Alvefur # Date 1624875628 -7200 # Node ID 78f1515575abaa17c490910b797928ac6fad5d1e # Parent 3c3f452413174d97789dfadfe9b47d15a269f365 mod_measure_lua: Use gauge instead of counter for Lua version (thanks jonas’) Fixes inclusion of a '_total' suffix on the value, and more semantically correct according to jonas’. diff -r 3c3f45241317 -r 78f1515575ab mod_measure_lua/mod_measure_lua.lua --- a/mod_measure_lua/mod_measure_lua.lua Mon Jun 28 12:05:51 2021 +0200 +++ b/mod_measure_lua/mod_measure_lua.lua Mon Jun 28 12:20:28 2021 +0200 @@ -11,4 +11,4 @@ gc_bytes:set(kbytes * 1024); end); -custom_metric("counter", "lua_info", "", "Lua runtime version", { "version" }):with_labels(_VERSION):set(1); +custom_metric("gauge", "lua_info", "", "Lua runtime version", { "version" }):with_labels(_VERSION):set(1);