mod_prometheus/mod_prometheus.lua
changeset 3130 888375de933c
parent 3129 07a2ba55de4d
child 3131 36770ae1148f
--- 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));