mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Merge 0.12->trunk
This commit is contained in:
commit
df1e43d1ad
1 changed files with 1 additions and 0 deletions
|
@ -653,6 +653,7 @@ end
|
|||
function api:metric(type_, name, unit, description, label_keys, conf)
|
||||
local metric = require "prosody.core.statsmanager".metric;
|
||||
local is_scoped = self.host ~= "*"
|
||||
label_keys = label_keys or {};
|
||||
if is_scoped then
|
||||
-- prepend `host` label to label keys if this is not a global module
|
||||
local orig_labels = label_keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue