# HG changeset patch # User Emmanuel Gil Peyrot # Date 1529611861 -7200 # Node ID 888375de933cbc42654a4c25e69f9850badef51a # Parent 07a2ba55de4d9a0a2ea608ceff20986fb1ddafb9 mod_prometheus: Prefix metric names with "prosody_". diff -r 07a2ba55de4d -r 888375de933c mod_prometheus/mod_prometheus.lua --- a/mod_prometheus/mod_prometheus.lua Thu Jun 21 21:37:13 2018 +0200 +++ b/mod_prometheus/mod_prometheus.lua Thu Jun 21 22:11:01 2018 +0200 @@ -106,7 +106,7 @@ local timestamp = tostring(get_timestamp()); for section, data in pairs(data.data) do for key, value in pairs(data) do - local name = section.."_"..key; + local name = "prosody_"..section.."_"..key; t_insert(response, repr_help(name, "TODO: add a description here.")); t_insert(response, repr_type(name, "gauge")); t_insert(response, repr_sample(name, {}, value, timestamp));