Mercurial > prosody-modules
diff mod_prometheus/mod_prometheus.lua @ 3126:888375de933c
mod_prometheus: Prefix metric names with "prosody_".
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 21 Jun 2018 22:11:01 +0200 |
parents | 07a2ba55de4d |
children | 36770ae1148f |
line wrap: on
line diff
--- 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));