--- a/mod_munin/mod_munin.lua Wed Apr 22 13:20:47 2015 +0200
+++ b/mod_munin/mod_munin.lua Thu Apr 23 16:58:57 2015 +0200
@@ -58,7 +58,7 @@
conn:write(s_format("%s %s\n", k, value));
end
for _, name, k, value in meta:iter(stat, nil, nil) do
- if name ~= "" then
+ if name ~= "" and not ignore_stats:contains(name) then
conn:write(s_format("%s.%s %s\n", name, k, value));
end
end
@@ -69,7 +69,9 @@
local stat = line:match("%s(%S+)");
if not stat then conn:write("# Unknown service\n.\n"); return end
for _, name, value in data:iter(stat, nil) do
- conn:write(s_format("%s.value %s\n", name, tostring(value)));
+ if not ignore_stats:contains(name) then
+ conn:write(s_format("%s.value %s\n", name, tostring(value)));
+ end
end
conn:write(".\n");
end