diff options
author | Kim Alvefur <zash@zash.se> | 2024-08-18 17:01:47 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-08-18 17:01:47 +0200 |
commit | df1e43d1ad0963e416cc7423e58b4e8015f72b13 (patch) | |
tree | 3eb3da143b5a1c272214fe987e460c56b354fce7 /core/moduleapi.lua | |
parent | ce8b91e4a751b28304a808705bfc4fc974d59ec1 (diff) | |
parent | 65386e9810670432e06c7fd62f91891f87678c6b (diff) | |
download | prosody-df1e43d1ad0963e416cc7423e58b4e8015f72b13.tar.gz prosody-df1e43d1ad0963e416cc7423e58b4e8015f72b13.zip |
Merge 0.12->trunk
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r-- | core/moduleapi.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 31d1b1bd..fa5086cf 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -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 |