changeset 3137 | 321fd53a3191 |
parent 3136 | 4ef28b6b4e87 |
child 3138 | 99ac6dda9878 |
--- a/mod_prometheus/mod_prometheus.lua Fri Jun 22 00:32:05 2018 +0200 +++ b/mod_prometheus/mod_prometheus.lua Fri Jun 22 00:38:37 2018 +0200 @@ -80,10 +80,10 @@ sect = sect:sub(16); end - local key = escape_name("prosody_"..sect.."_"..name); + local key = escape_name("prosody_"..sect); local field = { value = value, - labels = {}, + labels = { ["type"] = name}, -- TODO: Use the other types where it makes sense. typ = (typ == "rate" and "counter" or "gauge"), };