aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-08-18 17:01:47 +0200
committerKim Alvefur <zash@zash.se>2024-08-18 17:01:47 +0200
commitdf1e43d1ad0963e416cc7423e58b4e8015f72b13 (patch)
tree3eb3da143b5a1c272214fe987e460c56b354fce7
parentce8b91e4a751b28304a808705bfc4fc974d59ec1 (diff)
parent65386e9810670432e06c7fd62f91891f87678c6b (diff)
downloadprosody-df1e43d1ad0963e416cc7423e58b4e8015f72b13.tar.gz
prosody-df1e43d1ad0963e416cc7423e58b4e8015f72b13.zip
Merge 0.12->trunk
-rw-r--r--core/moduleapi.lua1
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