Comparison

plugins/mod_admin_shell.lua @ 11943:cf47834d3698

mod_admin_shell: Fix showing default HTTP path in module:info Thanks mod_http_openmetrics
author Kim Alvefur <zash@zash.se>
date Thu, 25 Nov 2021 17:07:13 +0100
parent 11932:92925f1320e7
child 11945:142b9c4010fe
comparison
equal deleted inserted replaced
11942:b4f77a7bf8ab 11943:cf47834d3698
441 ["feature"] = tostring, 441 ["feature"] = tostring,
442 ["identity"] = function(ident) return ident.type .. "/" .. ident.category; end, 442 ["identity"] = function(ident) return ident.type .. "/" .. ident.category; end,
443 ["adhoc-provider"] = item_name, 443 ["adhoc-provider"] = item_name,
444 ["auth-provider"] = item_name, 444 ["auth-provider"] = item_name,
445 ["storage-provider"] = item_name, 445 ["storage-provider"] = item_name,
446 ["http-provider"] = function(item, mod) return mod:http_url(item.name); end, 446 ["http-provider"] = function(item, mod) return mod:http_url(item.name, item.default_path); end,
447 ["net-provider"] = item_name, 447 ["net-provider"] = item_name,
448 ["measure"] = function(item) return item.name .. " (" .. suf(item.conf and item.conf.unit, " ") .. item.type .. ")"; end, 448 ["measure"] = function(item) return item.name .. " (" .. suf(item.conf and item.conf.unit, " ") .. item.type .. ")"; end,
449 ["metric"] = function(item) 449 ["metric"] = function(item)
450 return ("%s (%s%s)%s"):format(item.name, suf(item.mf.unit, " "), item.mf.type_, pre(": ", item.mf.description)); 450 return ("%s (%s%s)%s"):format(item.name, suf(item.mf.unit, " "), item.mf.type_, pre(": ", item.mf.description));
451 end, 451 end,