comparison mod_s2s_cache_failures/mod_s2s_cache_failures.lua @ 6347:7ed4627ba65d

mod_s2s_cache_failures: Fix traceback when reporting stats (thanks sundance)
author Kim Alvefur <zash@zash.se>
date Thu, 06 Nov 2025 15:25:19 +0100
parents ee2ebdec1fae
children
comparison
equal deleted inserted replaced
6346:c400892603ce 6347:7ed4627ba65d
68 return origin.send(reply); 68 return origin.send(reply);
69 end 69 end
70 end); 70 end);
71 71
72 module:hook("stats-update", function () 72 module:hook("stats-update", function ()
73 measure_failed_domains:set(domains:count()); 73 measure_failed_domains:with_labels():set(domains:count());
74 end); 74 end);
75 75
76 module:add_item("shell-command", { 76 module:add_item("shell-command", {
77 section = "s2s"; 77 section = "s2s";
78 section_desc = "View and manage server-to-server connections"; 78 section_desc = "View and manage server-to-server connections";